public function registerProvider(TextingProviderInterface $provider)
    {
        if (!$this->defaultProvider) {
            $this->defaultProvider = &$provider;
        }

        $this->providers[$provider->getName()] = $provider;
    }
public function registerProvider(TextingProviderInterface $provider)
    {
        if (!$this->defaultProvider) {
            $this->defaultProvider = &$provider;
        }

        $this->providers[$provider->getName()] = $provider;
    }
public function registerProvider ( TextingProviderInterface $ provider ) { if ( ! $ this -> defaultProvider ) { $ this -> defaultProvider = & $ provider ; } $ this -> providers [ $ provider -> getName ( ) ] = $ provider ; }
Will register the provider to be used later on.

@param TextingProviderInterface $provider
Will register the provider to be used later on .