Redirection/ProviderRegistry.php
public function addProvider(ProviderInterface $provider)
    {
        if ($this->initialized) {
            throw new \RuntimeException('Redirection registry as been initialized and can\'t register more providers.');
        }
        if (array_key_exists($provider->getName(), $this->providers)) {
            throw new \InvalidArgumentException(sprintf('Provider "%s" is already registered.', $provider->getName()));
        }
        $this->providers[$provider->getName()] = $provider;
    }
public function addProvider(ProviderInterface $provider)
    {
        if ($this->initialized) {
            throw new \RuntimeException('Redirection registry as been initialized and can\'t register more providers.');
        }
        if (array_key_exists($provider->getName(), $this->providers)) {
            throw new \InvalidArgumentException(sprintf('Provider "%s" is already registered.', $provider->getName()));
        }
        $this->providers[$provider->getName()] = $provider;
    }
{@inheritdoc}