protected function getMiddleware(AbstractPath $path)
    {
        $classMiddleware = $this->getClassMiddlewareForPath($path)->all();

        return $this->implodeArray(
            array_merge($classMiddleware, $path->middleware, $this->middleware)
        );
    }
protected function getMiddleware(AbstractPath $path)
    {
        $classMiddleware = $this->getClassMiddlewareForPath($path)->all();

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

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

@return array
Get the middleware for the path .