seregazhuk\PinterestBot\Api\ProvidersContainer::addProvider PHP Méthode

addProvider() protected méthode

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