getName() public méthode

Get the name of this route
public getName ( ) : string
Résultat string $name
Exemple #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;
 }
Exemple #2
0
 /**
  * Add a route metadata object
  * @param RouteMetaData $route
  */
 public function addRouteMetaData(RouteMetaData $route)
 {
     $route->setClassMetaData($this);
     $this->routes[$route->getName()] = $route;
 }
Exemple #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());
 }