You are here

public function DynamicRouter::getRouteDebugMessage in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony-cmf/routing/DynamicRouter.php \Symfony\Cmf\Component\Routing\DynamicRouter::getRouteDebugMessage()

Forwards to the generator.

Overrides VersatileGeneratorInterface::getRouteDebugMessage

File

vendor/symfony-cmf/routing/DynamicRouter.php, line 365

Class

DynamicRouter
A flexible router accepting matcher and generator through injection and using the RouteEnhancer concept to generate additional data on the routes.

Namespace

Symfony\Cmf\Component\Routing

Code

public function getRouteDebugMessage($name, array $parameters = array()) {
  if ($this->generator instanceof VersatileGeneratorInterface) {
    return $this->generator
      ->getRouteDebugMessage($name, $parameters);
  }
  return "Route '{$name}' not found";
}