From c748535ea3821028f38e1d24d8ee58e6db7f4dff Mon Sep 17 00:00:00 2001 From: Janek Urbitsch <99957086+Jan3k3y@users.noreply.github.com> Date: Fri, 28 Jun 2024 20:10:04 +0200 Subject: [PATCH 1/2] composer require neos/neos:^9 --- composer.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index a1a7b45..d68d05b 100644 --- a/composer.json +++ b/composer.json @@ -23,10 +23,10 @@ ], "homepage": "https://yoast.com", "require": { - "php": ">=7.4", - "neos/neos": "^7.3 || ^8.3", - "neos/neos-ui": "^7.3 || ^8.3", - "neos/seo": "~3.0", + "php": "^8.2", + "neos/neos": "^9", + "neos/neos-ui": "^9", + "neos/seo": "^4.1", "ext-json": "*" }, "replace": { From e5b8e5af8c6ec62e70a9527eebbe05b902b5d2b3 Mon Sep 17 00:00:00 2001 From: Janek Urbitsch Date: Mon, 21 Oct 2024 16:40:02 +0200 Subject: [PATCH 2/2] `neos/rector` and replace `NodeInterface` --- Classes/Controller/PageController.php | 6 +++--- Resources/Private/Fusion/Components/Application.fusion | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Classes/Controller/PageController.php b/Classes/Controller/PageController.php index e5430c4..1fa7f73 100644 --- a/Classes/Controller/PageController.php +++ b/Classes/Controller/PageController.php @@ -14,7 +14,7 @@ * source code. */ -use Neos\ContentRepository\Domain\Model\NodeInterface; +use Neos\ContentRepository\Core\Projection\ContentGraph\Node; use Neos\Flow\Mvc\Controller\ActionController; use Neos\Flow\Mvc\Exception\StopActionException; use Neos\Neos\Controller\Frontend\NodeController; @@ -25,10 +25,10 @@ class PageController extends ActionController /** * Redirects request to the given node in preview mode without the neos backend * - * @param NodeInterface $node + * @param Node $node * @throws StopActionException */ - public function renderPreviewPageAction(NodeInterface $node): void + public function renderPreviewPageAction(Node $node): void { $previewAction = 'preview'; diff --git a/Resources/Private/Fusion/Components/Application.fusion b/Resources/Private/Fusion/Components/Application.fusion index 6d5527e..b1b3f25 100644 --- a/Resources/Private/Fusion/Components/Application.fusion +++ b/Resources/Private/Fusion/Components/Application.fusion @@ -17,7 +17,7 @@ prototype(Yoast.YoastSeoForNeos:Component.Application) < prototype(Neos.Fusion:T workerUrl = Neos.Fusion:ResourceUri { path = 'resource://Yoast.YoastSeoForNeos/Public/Assets/webWorker.js' } - previewUrl = ${'/neosyoastseo/page/renderPreviewPage?node=' + String.rawUrlEncode(documentNode.contextPath)} + previewUrl = ${'/neosyoastseo/page/renderPreviewPage?node=' + String.rawUrlEncode(Neos.Node.serializedNodeAddress(documentNode))} baseUrl = Yoast.YoastSeoForNeos:BaseUri siteUrl = Neos.Neos:NodeUri { node = ${q(site).context({workspaceName: 'live'}).get(0)}