getName() 공개 메소드

Get the name of this route
public getName ( ) : string
리턴 string $name
예제 #1
0
파일: Router.php 프로젝트: jdrich/drest
 /**
  * Register a route definition (pulled from annotations) into the router stack
  * @param RouteMetaData $route
  */
 public function registerRoute(RouteMetaData $route)
 {
     $this->routes[$route->getName()] = $route;
 }
예제 #2
0
 /**
  * Add a route metadata object
  * @param RouteMetaData $route
  */
 public function addRouteMetaData(RouteMetaData $route)
 {
     $route->setClassMetaData($this);
     $this->routes[$route->getName()] = $route;
 }
예제 #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());
 }