diff --git a/Classes/CurrentControllerExpressionNode.php b/Classes/CurrentControllerExpressionNode.php index 03289e1..390af09 100644 --- a/Classes/CurrentControllerExpressionNode.php +++ b/Classes/CurrentControllerExpressionNode.php @@ -16,7 +16,7 @@ class CurrentControllerExpressionNode extends AbstractExpressionNode implements * note: this could be readonly in PHP8 * @var string */ - public static string $detectionExpression = '/\{#currentController\.([a-z0-9]+)\}/'; + public static string $detectionExpression = '/\{#currentController\.([a-zA-Z0-9\.]+)\}/'; public static function evaluateExpression(RenderingContextInterface $renderingContext, $expression, array $matches) { @@ -31,7 +31,7 @@ class CurrentControllerExpressionNode extends AbstractExpressionNode implements ) { $propertyToReturn = 'controller' . \ucfirst($propertyToReturn); } - return ObjectAccess::getProperty( + return ObjectAccess::getPropertyPath( $renderingContext->getControllerContext()->getRequest(), $propertyToReturn );