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'];
        });
    }
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'];
        });
    }
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' ] ; } ) ; }
Get the class middleware for the given path.

@param \Collective\Annotations\Routing\Annotations\AbstractPath $path

@return array
Get the class middleware for the given path .