Symfony\Bundle\FrameworkBundle\Routing\Router::resolve
Recursively replaces placeholders with the service container parameters.
Signature
private function resolve(mixed
$value )
Parameters
$value
—
mixed
- The source which might contain "%placeholders%"
Returns
- mixed
- The source with the placeholders replaced by the container
parameters. Array are resolved recursively.
Errors/Exceptions
-
ParameterNotFoundException
- When a placeholder does not exist as a container parameter
-
RuntimeException
- When a container value is not a string or a numeric value