You appear to be a bot. Output may be restricted
Description
Get a definition to extend.
Usage
$DefinitionInterface = Container::extend( $id );
Parameters
- $id
- ( string ) required – [description]
Returns
DefinitionInterface
Source
File name: woocommerce/lib/packages/League/Container/Container.php
Lines:
1 to 15 of 15
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) ); }