Skip to content

Commit 411f102

Browse files
authored
FIX: Fix compatibility with neos in FrontendNodeRoutePartHandler
Remove property $supportEmptySegmentForDimensions, as it is already declared in the parent class and must not be redeclared.
1 parent 2c54ad9 commit 411f102

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

Classes/Package/FrontendNodeRoutePartHandler.php

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ class FrontendNodeRoutePartHandler extends NeosFrontendNodeRoutePartHandler
2020
*/
2121
public const MIXIN_PROPERTY_NAME = 'hideSegmentInUriPath';
2222

23-
24-
/**
25-
* @Flow\InjectConfiguration("routing.supportEmptySegmentForDimensions", package="Neos.Neos")
26-
* @var boolean
27-
*/
28-
protected bool $supportEmptySegmentForDimensions;
29-
3023
/**
3124
* @param string $requestPath
3225
* @return string
@@ -77,7 +70,7 @@ protected function getRelativeNodePathByUriPathSegmentProperties(NodeInterface $
7770
* @return NodeInterface|null
7871
* @throws NodeException
7972
*/
80-
protected function findNextNodeWithPathSegmentRecursively(
73+
protected function findNextNodeWithPathSegmentRecursively(
8174
NodeInterface $startingNode,
8275
$pathSegment,
8376
&$relativeNodePathSegments,
@@ -126,7 +119,12 @@ protected function getRequestPathByNode(NodeInterface $node): string
126119
// To disallow showing a node actually hidden itself has to be ensured in matching
127120
// a request path, not in building one.
128121
$contextProperties = $node->getContext()->getProperties();
129-
$contextAllowingHiddenNodes = $this->contextFactory->create(array_merge($contextProperties, ['invisibleContentShown' => true]));
122+
$contextAllowingHiddenNodes = $this->contextFactory->create(
123+
array_merge(
124+
$contextProperties,
125+
['invisibleContentShown' => true]
126+
)
127+
);
130128
$currentNode = $contextAllowingHiddenNodes->getNodeByIdentifier($node->getIdentifier());
131129

132130
$requestPathSegments = [];

0 commit comments

Comments
 (0)