HOR-2967 observations of 'pull Request'
This commit is contained in:
@@ -83,8 +83,10 @@ function flush_cache($args, $opts)
|
|||||||
//Only if the API directory structure is defined
|
//Only if the API directory structure is defined
|
||||||
$pathApiDirectory = PATH_PLUGINS . $details->sPluginFolder . PATH_SEP . "src" . PATH_SEP . "Services" . PATH_SEP . "Api";
|
$pathApiDirectory = PATH_PLUGINS . $details->sPluginFolder . PATH_SEP . "src" . PATH_SEP . "Services" . PATH_SEP . "Api";
|
||||||
if (is_dir($pathApiDirectory)) {
|
if (is_dir($pathApiDirectory)) {
|
||||||
$oPluginRegistry->enablePlugin($details->sNamespace);
|
if (class_exists($details->sClassName)) {
|
||||||
$oPluginRegistry->setupPlugins();
|
$oPlugin = new $details->sClassName($details->sNamespace, $details->sFilename);
|
||||||
|
$oPlugin->setup();
|
||||||
|
}
|
||||||
file_put_contents($pathSingleton, $oPluginRegistry->serializeInstance());
|
file_put_contents($pathSingleton, $oPluginRegistry->serializeInstance());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user