public function unregister($key, $name)
    {
        if (empty($key) || empty($name)) {
            throw new \common_Exception();
        }

        if (is_object($name)) {
            $name = get_class($name);
        }

        switch ($key) {
            case self::EXTRACTOR_KEY:
                $this->unregisterInstance(self::EXTRACTOR_KEY, $name);
                break;
            case self::INJECTOR_KEY:
                $this->unregisterInstance(self::INJECTOR_KEY, $name);
                break;
        }
        return;
    }
public function unregister($key, $name)
    {
        if (empty($key) || empty($name)) {
            throw new \common_Exception();
        }

        if (is_object($name)) {
            $name = get_class($name);
        }

        switch ($key) {
            case self::EXTRACTOR_KEY:
                $this->unregisterInstance(self::EXTRACTOR_KEY, $name);
                break;
            case self::INJECTOR_KEY:
                $this->unregisterInstance(self::INJECTOR_KEY, $name);
                break;
        }
        return;
    }
public function unregister ( $ key , $ name ) { if ( empty ( $ key ) || empty ( $ name ) ) { throw new \ common_Exception ( ) ; } if ( is_object ( $ name ) ) { $ name = get_class ( $ name ) ; } switch ( $ key ) { case self :: EXTRACTOR_KEY : $ this -> unregisterInstance ( self :: EXTRACTOR_KEY , $ name ) ; break ; case self :: INJECTOR_KEY : $ this -> unregisterInstance ( self :: INJECTOR_KEY , $ name ) ; break ; } return ; }
Unregister a instance of metadataService config

Unregister an instance with helper method unregisterInstance

@param string $key The config key where unregister instance
@param string $name The instance name to unregister
@throws \common_Exception If method is call with empty argument
Unregister a instance of metadataService config