/**
* Generates PHP code representing an array of defined routes
* together with the routes properties (e.g. requirements).
*/
private function generateDeclaredRoutes(): string
{ $routes = '';
foreach ($this->
getCompiledRoutes() as $name =>
$properties) { $routes .=
sprintf("\n '%s' => %s,",
$name, CompiledUrlMatcherDumper::
export($properties));
} foreach ($this->
getCompiledAliases() as $alias =>
$properties) { $routes .=
sprintf("\n '%s' => %s,",
$alias, CompiledUrlMatcherDumper::
export($properties));
} return $routes;
}}