Adamgoose\Routing\Annotations\MethodEndpoint::getClassMiddlewareForPath PHP Method

getClassMiddlewareForPath() protected method

Get the class middleware for the given path.
protected getClassMiddlewareForPath ( AbstractPath $path ) : array
$path AbstractPath
return 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'];
        });
    }