src/FrameRunner.php
public static function factory(array $middlewares = array())
    {
        $runner = null;
        foreach ($middlewares as $middleware) {
            $runner = $runner ? $runner->add($middleware) : new static($middleware);
        }
        return $runner;
    }
public static function factory(array $middlewares = array())
    {
        $runner = null;
        foreach ($middlewares as $middleware) {
            $runner = $runner ? $runner->add($middleware) : new static($middleware);
        }
        return $runner;
    }
public static function factory ( array $ middlewares = array ( ) ) { $ runner = null ; foreach ( $ middlewares as $ middleware ) { $ runner = $ runner ? $ runner -> add ( $ middleware ) : new static ( $ middleware ) ; } return $ runner ; }
Creates a runner based on an array of middleware

@param array $middlewares
@return FrameRunner
Creates a runner based on an array of middleware