public function get($id)
    {
        if (!$this->has($id)) {
            throw new Exception\NotFoundException;
        }
        if (!$this->isReady($id)) {
            $this->instantiate($id);
        }
        return $this->instances[$id];
    }
public function get($id)
    {
        if (!$this->has($id)) {
            throw new Exception\NotFoundException;
        }
        if (!$this->isReady($id)) {
            $this->instantiate($id);
        }
        return $this->instances[$id];
    }
public function get ( $ id ) { if ( ! $ this -> has ( $ id ) ) { throw new Exception \ NotFoundException ; } if ( ! $ this -> isReady ( $ id ) ) { $ this -> instantiate ( $ id ) ; } return $ this -> instances [ $ id ] ; }
Returns specified service.
Throws exception if requested service not exists.

@param string $id
@return mixed
Returns specified service . Throws exception if requested service not exists .