bug #20129 [TwigBridge] Fixed unknown controller method (ro0NL)
This PR was merged into the 3.2-dev branch.
Discussion
----------
[TwigBridge] Fixed unknown controller method
| Q | A
| ------------- | ---
| Branch? | "master"
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | https://github.com/symfony/symfony/issues/20125#issuecomment-250980221
| License | MIT
| Doc PR | reference to the documentation PR, if any
@fabpot can you have a look :) Im not sure this concerns BC.. but perhaps it makes sense moving this method as well.
Commits
-------
e45e80e
fixed
This commit is contained in:
commit
669478db26
@ -25,7 +25,7 @@ class HttpKernelExtension extends \Twig_Extension
|
|||||||
return array(
|
return array(
|
||||||
new \Twig_SimpleFunction('render', array(HttpKernelRuntime::class, 'renderFragment'), array('is_safe' => array('html'))),
|
new \Twig_SimpleFunction('render', array(HttpKernelRuntime::class, 'renderFragment'), array('is_safe' => array('html'))),
|
||||||
new \Twig_SimpleFunction('render_*', array(HttpKernelRuntime::class, 'renderFragmentStrategy'), array('is_safe' => array('html'))),
|
new \Twig_SimpleFunction('render_*', array(HttpKernelRuntime::class, 'renderFragmentStrategy'), array('is_safe' => array('html'))),
|
||||||
new \Twig_SimpleFunction('controller', HttpKernelRuntime::class.'::controller'),
|
new \Twig_SimpleFunction('controller', static::class.'::controller'),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user