Symfony\Component\Routing\Matcher\Dumper\PhpMatcherDumper::compileRoute
Compiles a single Route to PHP code used to match it against the path info.
Signature
private function compileRoute(Route
$route,
[string
$name = null,
[Boolean
$supportsRedirections = null,
[string|null
$parentPrefix = null]]] )
Parameters
$route
—
Symfony\Component\Routing\Route
- A Route instance
$name
—
string
- The name of the Route
$supportsRedirections
—
object
- Whether redirections are supported by the base class
$parentPrefix
—
object
- The prefix of the parent collection used to optimize the code
Returns
- string
- PHP code
Errors/Exceptions
-
LogicException