Closed
Description
Description
Using parameter substitution with boolean is not allowed in route condition.
Example
So this is not possible:
/**
* @Route("/test", condition="%kernel.debug%")
*/
class TestController extends AbstractController
{*
...
Exception is here :
// symfony/framework-bundle/Routing/Router.php
// near line 176 : hard coded type test : add is_bool() ?
...
if (\is_string($resolved) || is_numeric($resolved)) {
$this->collectedParameters[$match[1]] = $resolved;
return (string) $resolved;
}
...