protected function addProvider($provider)
    {
        $className = $this->resolveProviderClass($provider);

        $this->providers[$provider] = $this->buildProvider($className);
    }
protected function addProvider($provider)
    {
        $className = $this->resolveProviderClass($provider);

        $this->providers[$provider] = $this->buildProvider($className);
    }
protected function addProvider ( $ provider ) { $ className = $ this -> resolveProviderClass ( $ provider ) ; $ this -> providers [ $ provider ] = $ this -> buildProvider ( $ className ) ; }
Creates provider by class name, and if success saves
it to providers array. Provider class must exist in PROVIDERS_NAMESPACE.

@param string $provider
@throws WrongProvider
Creates provider by class name and if success saves it to providers array . Provider class must exist in PROVIDERS_NAMESPACE .