Collective\Annotations\Routing\Annotations\MethodEndpoint::getClassMiddlewareForPath PHP Метод

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

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