Collective\Annotations\Routing\Annotations\MethodEndpoint::getMiddleware PHP Method

getMiddleware() protected method

Get the middleware for the path.
protected getMiddleware ( AbstractPath $path ) : array
$path AbstractPath
return array
    protected function getMiddleware(AbstractPath $path)
    {
        $classMiddleware = $this->getClassMiddlewareForPath($path)->all();
        return $this->implodeArray(array_merge($classMiddleware, $path->middleware, $this->middleware));
    }