Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neos9 compatible #103

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Classes/Controller/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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';

Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Fusion/Components/Application.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down