Adamgoose\Routing\Annotations\MethodEndpoint::getPaths PHP 메소드

getPaths() 공개 메소드

Get all of the path definitions for an endpoint.
public getPaths ( ) : array
리턴 array
    public function getPaths()
    {
        return $this->paths;
    }

Usage Example

예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function modify(MethodEndpoint $endpoint, ReflectionMethod $method)
 {
     if ($endpoint->hasPaths()) {
         foreach ($endpoint->getPaths() as $path) {
             $path->middleware = array_merge($path->middleware, (array) $this->value);
         }
     } else {
         $endpoint->middleware = array_merge($endpoint->middleware, (array) $this->value);
     }
 }
All Usage Examples Of Adamgoose\Routing\Annotations\MethodEndpoint::getPaths