From 411f102f837db6cfeb500a9a452692dd097c679f Mon Sep 17 00:00:00 2001 From: Benjamin-K Date: Tue, 21 Jul 2020 12:09:42 +0200 Subject: [PATCH] FIX: Fix compatibility with neos in FrontendNodeRoutePartHandler Remove property $supportEmptySegmentForDimensions, as it is already declared in the parent class and must not be redeclared. --- Classes/Package/FrontendNodeRoutePartHandler.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/Classes/Package/FrontendNodeRoutePartHandler.php b/Classes/Package/FrontendNodeRoutePartHandler.php index a672588..c5cfa7a 100644 --- a/Classes/Package/FrontendNodeRoutePartHandler.php +++ b/Classes/Package/FrontendNodeRoutePartHandler.php @@ -20,13 +20,6 @@ class FrontendNodeRoutePartHandler extends NeosFrontendNodeRoutePartHandler */ public const MIXIN_PROPERTY_NAME = 'hideSegmentInUriPath'; - - /** - * @Flow\InjectConfiguration("routing.supportEmptySegmentForDimensions", package="Neos.Neos") - * @var boolean - */ - protected bool $supportEmptySegmentForDimensions; - /** * @param string $requestPath * @return string @@ -77,7 +70,7 @@ protected function getRelativeNodePathByUriPathSegmentProperties(NodeInterface $ * @return NodeInterface|null * @throws NodeException */ - protected function findNextNodeWithPathSegmentRecursively( + protected function findNextNodeWithPathSegmentRecursively( NodeInterface $startingNode, $pathSegment, &$relativeNodePathSegments, @@ -126,7 +119,12 @@ protected function getRequestPathByNode(NodeInterface $node): string // To disallow showing a node actually hidden itself has to be ensured in matching // a request path, not in building one. $contextProperties = $node->getContext()->getProperties(); - $contextAllowingHiddenNodes = $this->contextFactory->create(array_merge($contextProperties, ['invisibleContentShown' => true])); + $contextAllowingHiddenNodes = $this->contextFactory->create( + array_merge( + $contextProperties, + ['invisibleContentShown' => true] + ) + ); $currentNode = $contextAllowingHiddenNodes->getNodeByIdentifier($node->getIdentifier()); $requestPathSegments = [];