Automattic\WooCommerce\Vendor\League\Container

Container::addServiceProvider()publicWC 1.0

Add a service provider.

Method of the class: Container{}

No Hooks.

Return

self.

Usage

$Container = new Container();
$Container->addServiceProvider( $provider ) : self;
$provider(ServiceProviderInterface|string) (required)
-

Container::addServiceProvider() code WC 7.1.0

public function addServiceProvider($provider) : self
{
    $this->providers->add($provider);

    return $this;
}