Adamgoose\Routing\Annotations\ResourceEndpoint::getMiddleware PHP 메소드

getMiddleware() 보호된 메소드

This will also merge in any of the middleware applied at the route level.
protected getMiddleware ( ResourcePath $path ) : array
$path ResourcePath
리턴 array
    protected function getMiddleware(ResourcePath $path)
    {
        $classMiddleware = $this->getClassMiddlewareForPath($path)->all();
        return array_merge($classMiddleware, array_get($this->middleware, $path->method, []));
    }