public function get($id)
    {
        if( !$this->has($id) ){
            throw new EntryNotFoundException;
        }

        $concrete = $this->items[$id];

        if( $concrete instanceof ContainerBuilder ){
            return $concrete->make();
        }

        return $concrete;        
    }
public function get($id)
    {
        if( !$this->has($id) ){
            throw new EntryNotFoundException;
        }

        $concrete = $this->items[$id];

        if( $concrete instanceof ContainerBuilder ){
            return $concrete->make();
        }

        return $concrete;        
    }
public function get ( $ id ) { if ( ! $ this -> has ( $ id ) ) { throw new EntryNotFoundException ; } $ concrete = $ this -> items [ $ id ] ; if ( $ concrete instanceof ContainerBuilder ) { return $ concrete -> make ( ) ; } return $ concrete ; }
Get an instance from the container

@param string $id
@return mixed
Get an instance from the container