public function extend($id, $definition)
    {
        if (!isset($this->extensions[$id])) {
            $this->extensions = [];
        }
        $this->extensions[$id][] = $definition;
    }
public function extend($id, $definition)
    {
        if (!isset($this->extensions[$id])) {
            $this->extensions = [];
        }
        $this->extensions[$id][] = $definition;
    }
public function extend ( $ id , $ definition ) { if ( ! isset ( $ this -> extensions [ $ id ] ) ) { $ this -> extensions = [ ] ; } $ this -> extensions [ $ id ] [ ] = $ definition ; }
Extend a service

@param string $id
@param mixed $definition
@author Ronan Chilvers <ronan@d3r.com>
Extend a service