WordPress at a glance
function is not described

Automattic\WooCommerce\Vendor\League\Container

Container::addServiceProvider() public WC 1.0

Add a service provider.

{} It's a method of the class: Container{}

No Hooks.

Return

self.

Usage

$Container = new Container();
$Container->addServiceProvider( $provider ) : self;
$provider *(ServiceProviderinterface string) (required)*

Code of Container::addServiceProvider() WC 5.0.0

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

    return $this;
}