protected function loadMiddleware()
    {
        $middlewareLoader = new MiddlewareLoader($this->getClassLoader());
        $middlewareLoader->initialize();

        $this->setConfig("runtime.middlewares", $middlewareLoader->getMiddlewares());
    }
protected function loadMiddleware()
    {
        $middlewareLoader = new MiddlewareLoader($this->getClassLoader());
        $middlewareLoader->initialize();

        $this->setConfig("runtime.middlewares", $middlewareLoader->getMiddlewares());
    }
protected function loadMiddleware ( ) { $ middlewareLoader = new MiddlewareLoader ( $ this -> getClassLoader ( ) ) ; $ middlewareLoader -> initialize ( ) ; $ this -> setConfig ( "runtime.middlewares" , $ middlewareLoader -> getMiddlewares ( ) ) ; }
Looks through all the packages in composer and if they
are in our Strata\Middleware namespace, we try to autoload them.
Looks through all the packages in composer and if they are in our Strata \ Middleware namespace we try to autoload them .