HOR-2967 observations of 'pull Request'

This commit is contained in:
Roly Rudy Gutierrez Pinto
2017-05-17 09:38:48 -04:00
parent 8520685298
commit be1a6b31c3

View File

@@ -83,8 +83,10 @@ function flush_cache($args, $opts)
//Only if the API directory structure is defined
$pathApiDirectory = PATH_PLUGINS . $details->sPluginFolder . PATH_SEP . "src" . PATH_SEP . "Services" . PATH_SEP . "Api";
if (is_dir($pathApiDirectory)) {
$oPluginRegistry->enablePlugin($details->sNamespace);
$oPluginRegistry->setupPlugins();
if (class_exists($details->sClassName)) {
$oPlugin = new $details->sClassName($details->sNamespace, $details->sFilename);
$oPlugin->setup();
}
file_put_contents($pathSingleton, $oPluginRegistry->serializeInstance());
}
}