public static function disable($type, $id)
{
$config = self::getConfig();
if (!isset($config->{$type})) {
$config->{$type} = new \Zend_Config([], true);
}
$config->{$type}->{$id} = false;
self::setConfig($config);
// call disable.php inside the extension
$extensionDir = self::getPathForExtension($id, $type);
$disableScript = $extensionDir . "/disable.php";
if (is_file($disableScript)) {
include $disableScript;
}
}