This commit is contained in:
Marco Antonio Nina Mena
2017-10-19 11:39:00 -04:00
parent 5fe388fc90
commit 11498fca10
2 changed files with 15 additions and 13 deletions

View File

@@ -1375,7 +1375,7 @@ class PMPluginRegistry
$classFile = $baseSrcPluginPath . $apiPath . 'Ext' . $className . '.php';
if (file_exists($classFile)) {
if (empty($this->_restExtendServices[$namespace])) {
$this->_restExtendServices[$namespace] = new \stdClass();
$this->_restExtendServices[$namespace] = new stdClass();
}
$this->_restExtendServices[$namespace]->{$className} = [
'filePath' => $classFile,

View File

@@ -204,6 +204,7 @@ class PluginRegistry
}
Cache::pull(self::NAME_CACHE);
}
/**
* Get the plugin details, by filename
* @param string $Filename
@@ -1125,7 +1126,8 @@ class PluginRegistry
$ActionSave,
$ActionExecute,
$ActionGetFields
) {
)
{
$found = false;
/** @var CaseSchedulerPlugin $caseScheduler */
foreach ($this->_aCaseSchedulerPlugin as $caseScheduler) {
@@ -1248,9 +1250,9 @@ class PluginRegistry
$baseSrcPluginPath = PATH_PLUGINS . $Namespace . PATH_SEP . 'src';
$apiPath = PATH_SEP . 'Services' . PATH_SEP . 'Ext' . PATH_SEP;
$classFile = $baseSrcPluginPath . $apiPath . 'Ext' . $ClassName . '.php';
if (\file_exists($classFile)) {
if (file_exists($classFile)) {
if (empty($this->_restExtendServices[$Namespace])) {
$this->_restExtendServices[$Namespace] = new \stdClass();
$this->_restExtendServices[$Namespace] = new stdClass();
}
$this->_restExtendServices[$Namespace]->{$ClassName} = [
'filePath' => $classFile,