getName() public method

Get the name of this route
public getName ( ) : string
return string $name
Example #1
0
 /**
  * Register a route definition (pulled from annotations) into the router stack
  * @param RouteMetaData $route
  */
 public function registerRoute(RouteMetaData $route)
 {
     $this->routes[$route->getName()] = $route;
 }
Example #2
0
 /**
  * Add a route metadata object
  * @param RouteMetaData $route
  */
 public function addRouteMetaData(RouteMetaData $route)
 {
     $route->setClassMetaData($this);
     $this->routes[$route->getName()] = $route;
 }
Example #3
0
 public static function handleAlreadyDefinedForRoute(Mapping\RouteMetaData $route)
 {
     return new self('There is a handle already defined for the route ' . $route->getName() . ' on class ' . $route->getClassMetaData()->getClassName());
 }