WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Vendor\League\Container

Container::extend() public WC 1.0

Get a definition to extend.

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

No Hooks.

Return

DefinitionInterface.

Usage

$Container = new Container();
$Container->extend( $id ) : DefinitionInterface;
$id(string) (required)
[description]

Code of Container::extend() WC 5.8.0

public function extend(string $id) : DefinitionInterface
{
    if ($this->providers->provides($id)) {
        $this->providers->register($id);
    }

    if ($this->definitions->has($id)) {
        return $this->definitions->getDefinition($id);
    }

    throw new NotFoundException(
        sprintf('Unable to extend alias (%s) as it is not being managed as a definition', $id)
    );
}