protected function setDefinition($id, $definition, $shared = false)
    {
        $this->definitions[$id] = $definition;
        if (true === $shared) {
            $this->shared[$id] = $id;
        }
    }
protected function setDefinition($id, $definition, $shared = false)
    {
        $this->definitions[$id] = $definition;
        if (true === $shared) {
            $this->shared[$id] = $id;
        }
    }
protected function setDefinition ( $ id , $ definition , $ shared = false ) { $ this -> definitions [ $ id ] = $ definition ; if ( true === $ shared ) { $ this -> shared [ $ id ] = $ id ; } }
Set a definition in the container

@param string $key
@param mixed $definition
@author Ronan Chilvers <ronan@d3r.com>
Set a definition in the container