Skip to content

Commit

Permalink
Support Ibexa 4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric authored and pspanja committed Feb 20, 2024
1 parent fbf3742 commit b3134fe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions bundle/Controller/PreviewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Netgen\Bundle\IbexaSiteApiBundle\Controller;

use eZ\Publish\Core\MVC\Symfony\View\ViewManagerInterface;
use Ibexa\Contracts\Core\Repository\Values\Content\Content;
use Ibexa\Contracts\Core\Repository\Values\Content\Location;
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
Expand Down Expand Up @@ -33,9 +34,10 @@ protected function getForwardRequest(
Content $content,
SiteAccess $previewSiteAccess,
Request $request,
$language,
string $language,
string $viewType = ViewManagerInterface::VIEW_TYPE_FULL
): Request {
$request = parent::getForwardRequest($location, $content, $previewSiteAccess, $request, $language);
$request = parent::getForwardRequest($location, $content, $previewSiteAccess, $request, $language, $viewType);

$this->injectAttributes($request, $previewSiteAccess, $language);

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"require": {
"php": ">=8.1",
"ext-dom": "*",
"ibexa/core": "^4.5",
"ibexa/http-cache": "^4.5",
"ibexa/fieldtype-richtext": "^4.5.2",
"ibexa/core": "^4.6",
"ibexa/http-cache": "^4.6",
"ibexa/fieldtype-richtext": "^4.6",
"netgen/ibexa-search-extra": "^3.0",
"sensio/framework-extra-bundle": "^6.1.0"
},
Expand Down
1 change: 1 addition & 0 deletions lib/Resources/config/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ services:
- '@Ibexa\Core\Persistence\Legacy\Filter\Handler\LocationFilteringHandler'
- '@Ibexa\Core\Repository\User\PasswordValidatorInterface'
- '@Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface'
- '@Ibexa\Contracts\Core\Repository\NameSchema\NameSchemaServiceInterface'
- '%languages%'
lazy: true

Expand Down

0 comments on commit b3134fe

Please sign in to comment.