public function initialize()
    {
        if ($this->hasMiddlewares()) {
            foreach ($this->middlewares as $middleware) {
                $middleware->initialize();
            }

            Strata::app()->log(sprintf("Loaded <info>%d</info> middlewares", count($this->middlewares)), "<info>Middleware</info>");
        }
    }
public function initialize()
    {
        if ($this->hasMiddlewares()) {
            foreach ($this->middlewares as $middleware) {
                $middleware->initialize();
            }

            Strata::app()->log(sprintf("Loaded <info>%d</info> middlewares", count($this->middlewares)), "<info>Middleware</info>");
        }
    }
public function initialize ( ) { if ( $ this -> hasMiddlewares ( ) ) { foreach ( $ this -> middlewares as $ middleware ) { $ middleware -> initialize ( ) ; } Strata :: app ( ) -> log ( sprintf ( "Loaded <info>%d</info> middlewares" , count ( $ this -> middlewares ) ) , "<info>Middleware</info>" ) ; } }
Goes through the list of defined middlewares to attempt
to initialize them.
Goes through the list of defined middlewares to attempt to initialize them .