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

        if (null !== $parameters) {
            $this->container = array_replace_recursive(
                $this->container,
                $parameters
            );
        }
    }
public function register(ProviderInterface $provider, array $parameters = null)
    {
        $provider->register($this);

        if (null !== $parameters) {
            $this->container = array_replace_recursive(
                $this->container,
                $parameters
            );
        }
    }
public function register ( ProviderInterface $ provider , array $ parameters = null ) { $ provider -> register ( $ this ) ; if ( null !== $ parameters ) { $ this -> container = array_replace_recursive ( $ this -> container , $ parameters ) ; } }
Registers the service provider with the service container. If any
parameters are provided, they will recursively replace or add values
to the service container.

@param ProviderInterface $provider   The service provider.
@param array             $parameters The list of parameters.
Registers the service provider with the service container . If any parameters are provided they will recursively replace or add values to the service container .