public function register(ProviderInterface $provider, array $parameters = null)
    {
        $provider->register($this);

        if (null !== $parameters) {
            $this->container = array_replace_recursive(
                $this->container,
                $parameters
            );
        }
    }