Convert a route identifier (name, content object etc) into a string usable for logging and other debug/error messages
mixed $name:
array $parameters which should contain a content field containing: a RouteAwareInterface object
string
Overrides VersatileGeneratorInterface::getRouteDebugMessage
public function getRouteDebugMessage($name, array $parameters = array()) {
if ($name instanceof RouteObjectInterface) {
return 'Route with key ' . $name
->getRouteKey();
}
if ($name instanceof SymfonyRoute) {
return 'Route with pattern ' . $name
->getPattern();
}
return $name;
}