public function add(ProviderInterface $provider)
    {
        $container = $this->container;

        $this->container = $provider->register($container);

        $this->providers[] = (string) get_class($provider);

        return $this;
    }
public function add(ProviderInterface $provider)
    {
        $container = $this->container;

        $this->container = $provider->register($container);

        $this->providers[] = (string) get_class($provider);

        return $this;
    }
public function add ( ProviderInterface $ provider ) { $ container = $ this -> container ; $ this -> container = $ provider -> register ( $ container ) ; $ this -> providers [ ] = ( string ) get_class ( $ provider ) ; return $ this ; }
Adds a new provider to be registered.

@param  \Zapheus\Provider\ProviderInterface $provider
@return self
Adds a new provider to be registered .