src/Container.php
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)
        );
    }
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)
        );
    }
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 ) ) ; }
Get a definition to extend.

@param string $id [description]

@return \League\Container\Definition\DefinitionInterface
Get a definition to extend .