protected function checkConfig($config)
{
$defClassConfig = ["installed", "active", "only_admin"];
if (!isset($config->params)) {
$config->params = new \stdClass();
}
foreach ($defClassConfig as $type) {
if (!isset($config->params->{$type})) {
$config->params->{$type} = false;
}
}
return $config;
}