public function ProviderBasedGenerator::getRouteDebugMessage in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony-cmf/routing/ProviderBasedGenerator.php \Symfony\Cmf\Component\Routing\ProviderBasedGenerator::getRouteDebugMessage()
Convert a route identifier (name, content object etc) into a string usable for logging and other debug/error messages
Parameters
mixed $name:
array $parameters which should contain a content field containing: a RouteReferrersReadInterface object
Return value
string
Overrides VersatileGeneratorInterface::getRouteDebugMessage
2 calls to ProviderBasedGenerator::getRouteDebugMessage()
- ContentAwareGenerator::getRouteDebugMessage in vendor/
symfony-cmf/ routing/ ContentAwareGenerator.php - Convert a route identifier (name, content object etc) into a string usable for logging and other debug/error messages
- ProviderBasedGenerator::generate in vendor/
symfony-cmf/ routing/ ProviderBasedGenerator.php - Generates a URL or path for a specific route based on the given parameters.
1 method overrides ProviderBasedGenerator::getRouteDebugMessage()
- ContentAwareGenerator::getRouteDebugMessage in vendor/
symfony-cmf/ routing/ ContentAwareGenerator.php - Convert a route identifier (name, content object etc) into a string usable for logging and other debug/error messages
File
- vendor/
symfony-cmf/ routing/ ProviderBasedGenerator.php, line 79
Class
- ProviderBasedGenerator
- A Generator that uses a RouteProvider rather than a RouteCollection
Namespace
Symfony\Cmf\Component\RoutingCode
public function getRouteDebugMessage($name, array $parameters = array()) {
if (is_scalar($name)) {
return $name;
}
if (is_array($name)) {
return serialize($name);
}
if ($name instanceof RouteObjectInterface) {
return 'Route with key ' . $name
->getRouteKey();
}
if ($name instanceof SymfonyRoute) {
return 'Route with pattern ' . $name
->getPattern();
}
return get_class($name);
}