base/ExtensionHelperTrait.php
public static function deregister($class, $force = false)
    {
        $model = static::getModel($class);
        if (!$model) {
            throw new InvalidParamException("`$class` does not exist.");
        }
        if ($model->isEnabled && !$force) {
            throw new InvalidParamException("Unable to remove the enabled extensions.");
        }
        return $model->delete() == 1;
    }
public static function deregister($class, $force = false)
    {
        $model = static::getModel($class);
        if (!$model) {
            throw new InvalidParamException("`$class` does not exist.");
        }
        if ($model->isEnabled && !$force) {
            throw new InvalidParamException("Unable to remove the enabled extensions.");
        }
        return $model->delete() == 1;
    }
public static function deregister ( $ class , $ force = false ) { $ model = static :: getModel ( $ class ) ; if ( ! $ model ) { throw new InvalidParamException ( "`$class` does not exist." ) ; } if ( $ model -> isEnabled && ! $ force ) { throw new InvalidParamException ( "Unable to remove the enabled extensions." ) ; } return $ model -> delete ( ) == 1 ; }
Deregister extension.
@param string|\rhoone\extension\Extension|\rhoone\models\Extension $class
@return boolean True if extension deregistered.
Deregister extension .