protected function setInitialProviders()
    {
        $app = $this->getBaseApp();
        $providers = $this->config->get('swoole_http.providers', []);

        foreach ($providers as $provider) {
            if (class_exists($provider) && ! in_array($provider, $this->providers)) {
                $providerClass = new $provider($app);
                $this->providers[$provider] = $providerClass;
            }
        }
    }
protected function setInitialProviders()
    {
        $app = $this->getBaseApp();
        $providers = $this->config->get('swoole_http.providers', []);

        foreach ($providers as $provider) {
            if (class_exists($provider) && ! in_array($provider, $this->providers)) {
                $providerClass = new $provider($app);
                $this->providers[$provider] = $providerClass;
            }
        }
    }
protected function setInitialProviders ( ) { $ app = $ this -> getBaseApp ( ) ; $ providers = $ this -> config -> get ( 'swoole_http.providers' , [ ] ) ; foreach ( $ providers as $ provider ) { if ( class_exists ( $ provider ) && ! in_array ( $ provider , $ this -> providers ) ) { $ providerClass = new $ provider ( $ app ) ; $ this -> providers [ $ provider ] = $ providerClass ; } } }
Initialize customized service providers.
Initialize customized service providers .