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