public function register(ServiceProviderInterface $provider, $settings = [])
    {
        $provider->register($this);
        foreach ($settings as $key => $value) {
            $this->set($key, $value);
        }

        return $this;
    }
public function register(ServiceProviderInterface $provider, $settings = [])
    {
        $provider->register($this);
        foreach ($settings as $key => $value) {
            $this->set($key, $value);
        }

        return $this;
    }
public function register ( ServiceProviderInterface $ provider , $ settings = [ ] ) { $ provider -> register ( $ this ) ; foreach ( $ settings as $ key => $ value ) { $ this -> set ( $ key , $ value ) ; } return $ this ; }
Register a service provider, a la Pimple

@param Ronanchilvers\Container\ServiceProviderInterface
@return $this
@author Ronan Chilvers <ronan@d3r.com>
Register a service provider a la Pimple