src/Kernel/App.php
public function pipes(array $middlewares): App
    {
        foreach ($middlewares as $key => $middleware) {
            if (is_numeric($key)) {
                $this->pipe($middleware);
                continue;
            }
            $this->pipe($middleware, $key);
        }
        return $this;
    }
public function pipes(array $middlewares): App
    {
        foreach ($middlewares as $key => $middleware) {
            if (is_numeric($key)) {
                $this->pipe($middleware);
                continue;
            }
            $this->pipe($middleware, $key);
        }
        return $this;
    }
public function pipes ( array $ middlewares ) : App { foreach ( $ middlewares as $ key => $ middleware ) { if ( is_numeric ( $ key ) ) { $ this -> pipe ( $ middleware ) ; continue ; } $ this -> pipe ( $ middleware , $ key ) ; } return $ this ; }
Add a list of middlewares to pipe

@param array $middlewares
@return $this
Add a list of middlewares to pipe