Skip to content

Commit

Permalink
Update to use renamed class
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Feb 8, 2023
1 parent 68098a7 commit 2479cf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/publications/src/Models/PublicationListPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

namespace Hyde\Publications\Models;

use Hyde\Pages\VirtualPage;
use Hyde\Pages\InMemoryPage;
use Hyde\Publications\Actions\PublicationPageCompiler;

/**
* @see \Hyde\Publications\Models\PublicationPage
* @see \Hyde\Publications\Testing\Feature\PublicationListPageTest
*/
class PublicationListPage extends VirtualPage
class PublicationListPage extends InMemoryPage
{
public PublicationType $type;

Expand Down
4 changes: 2 additions & 2 deletions packages/publications/src/PublicationsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Hyde\Foundation\Concerns\HydeExtension;
use Hyde\Foundation\PageCollection;
use Hyde\Pages\VirtualPage;
use Hyde\Pages\InMemoryPage;
use Hyde\Publications\Models\PublicationListPage;
use Hyde\Publications\Models\PublicationPage;
use Hyde\Publications\Models\PublicationType;
Expand Down Expand Up @@ -70,7 +70,7 @@ protected static function generatePublicationPaginatedListingPagesForType(Public
if (str_ends_with($listTemplate, '.blade.php')) {
$listTemplate = "{$type->getDirectory()}/$listTemplate";
}
$listingPage = new VirtualPage("{$type->getDirectory()}/page-$page", [
$listingPage = new InMemoryPage("{$type->getDirectory()}/page-$page", [
'publicationType' => $type, 'paginatorPage' => $page,
'title' => $type->name.' - Page '.$page,
], view: $listTemplate);
Expand Down

0 comments on commit 2479cf6

Please sign in to comment.