fixing an accidently error introduced by removing case insensitivity - and allowing path expressions for action request retrieval
All checks were successful
ci/woodpecker/push/code-style Pipeline was successful
ci/woodpecker/push/functional-tests/1 Pipeline was successful
ci/woodpecker/push/functional-tests/2 Pipeline was successful
ci/woodpecker/push/functional-tests/3 Pipeline was successful
ci/woodpecker/push/functional-tests/4 Pipeline was successful
All checks were successful
ci/woodpecker/push/code-style Pipeline was successful
ci/woodpecker/push/functional-tests/1 Pipeline was successful
ci/woodpecker/push/functional-tests/2 Pipeline was successful
ci/woodpecker/push/functional-tests/3 Pipeline was successful
ci/woodpecker/push/functional-tests/4 Pipeline was successful
This commit is contained in:
parent
f75b21a874
commit
193d9b925a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue