getMiddleware() public static méthode

Get all of the defined middleware short-hand names.
public static getMiddleware ( ) : array
Résultat array
 /**
  * 获取filter内用到的参数
  * @param unknown $filter
  * @return multitype:boolean
  */
 public function getMiddlewareParams($Middleware)
 {
     $MiddlewareMap = \Route::getMiddleware();
     $MiddlewareClass = $MiddlewareMap[$Middleware];
     $codes = getFunctionDeclaration([$MiddlewareClass, 'handle']);
     return $this->filterParams($codes);
 }
 /**
  * @param Route $route The unparsed route whose properties we are copying
  */
 public function __construct(Route $route)
 {
     parent::__construct($route->getMethods(), $route->getRawPath(), $route->getController());
     $this->setName($route->getName());
     $this->setRawHost($route->getRawHost());
     $this->addMiddleware($route->getMiddleware());
     $this->setSecure($route->isSecure());
     $this->setVarRegexes($route->varRegexes);
 }