src/Middleware/Queue.php
protected function fillTheQueue(array $middlewares)
    {
        foreach ($middlewares as $mw) {
            // with conditions specified
            if (is_array($mw)) {
                $this->push($mw[0], $mw[1]);

            // no condition
            } else {
                $this->push($mw);
            }
        }
    }
protected function fillTheQueue(array $middlewares)
    {
        foreach ($middlewares as $mw) {
            // with conditions specified
            if (is_array($mw)) {
                $this->push($mw[0], $mw[1]);

            // no condition
            } else {
                $this->push($mw);
            }
        }
    }
protected function fillTheQueue ( array $ middlewares ) { foreach ( $ middlewares as $ mw ) { // with conditions specified if ( is_array ( $ mw ) ) { $ this -> push ( $ mw [ 0 ] , $ mw [ 1 ] ) ; // no condition } else { $ this -> push ( $ mw ) ; } } }
Fill the queue with middlewares

@param  array $middlewares
@access protected
Fill the queue with middlewares