public function unregister($id)
    {
        if (array_key_exists($id, $this->components)) {
            unset($this->components[$id]);
        }

        if (array_key_exists($id, $this->instances)) {
            unset($this->instances[$id]);
        }

        return $this;
    }
public function unregister($id)
    {
        if (array_key_exists($id, $this->components)) {
            unset($this->components[$id]);
        }

        if (array_key_exists($id, $this->instances)) {
            unset($this->instances[$id]);
        }

        return $this;
    }
public function unregister ( $ id ) { if ( array_key_exists ( $ id , $ this -> components ) ) { unset ( $ this -> components [ $ id ] ) ; } if ( array_key_exists ( $ id , $ this -> instances ) ) { unset ( $ this -> instances [ $ id ] ) ; } return $ this ; }
Unregisters component from container

@param string $id

@return $this
Unregisters component from container