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'];
        });
    }