Adamgoose\Routing\Annotations\ResourceEndpoint::getClassMiddlewareForPath PHP Метод

getClassMiddlewareForPath() защищенный метод

Get the class middleware for the given path.
protected getClassMiddlewareForPath ( ResourcePath $path ) : array
$path ResourcePath
Результат array
    protected function getClassMiddlewareForPath(ResourcePath $path)
    {
        return Collection::make($this->classMiddleware)->filter(function ($m) use($path) {
            return $this->middlewareAppliesToMethod($path->method, $m);
        })->map(function ($m) {
            return $m['name'];
        });
    }