public function get($id)
	{
	    if (isset($this->_definitions[$id]) && is_object($this->_definitions[$id]) && !is_callable($this->_definitions[$id])) {
	        $this->_components[$id] = $this->_definitions[$id];
	    } elseif (!isset($this->_components[$id])) {
	        if (!isset($this->_definitions[$id])) {
	            throw new \RuntimeException('Must set components before use: ' . $id);
	        }
	        
	        $this->_components[$id] = Ioc::createObject($this->_definitions[$id]);
	    }
	    
	    return $this->_components[$id];
	}
public function get($id)
	{
	    if (isset($this->_definitions[$id]) && is_object($this->_definitions[$id]) && !is_callable($this->_definitions[$id])) {
	        $this->_components[$id] = $this->_definitions[$id];
	    } elseif (!isset($this->_components[$id])) {
	        if (!isset($this->_definitions[$id])) {
	            throw new \RuntimeException('Must set components before use: ' . $id);
	        }
	        
	        $this->_components[$id] = Ioc::createObject($this->_definitions[$id]);
	    }
	    
	    return $this->_components[$id];
	}
public function get ( $ id ) { if ( isset ( $ this -> _definitions [ $ id ] ) && is_object ( $ this -> _definitions [ $ id ] ) && ! is_callable ( $ this -> _definitions [ $ id ] ) ) { $ this -> _components [ $ id ] = $ this -> _definitions [ $ id ] ; } elseif ( ! isset ( $ this -> _components [ $ id ] ) ) { if ( ! isset ( $ this -> _definitions [ $ id ] ) ) { throw new \ RuntimeException ( 'Must set components before use: ' . $ id ) ; } $ this -> _components [ $ id ] = Ioc :: createObject ( $ this -> _definitions [ $ id ] ) ; } return $ this -> _components [ $ id ] ; }
get component by id, id is a brief name

@param string $id
@return object
get component by id id is a brief name