From 38c087ab2e740725271cd8253c414cdd105bc6bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julio=20Cesar=20Laura=20Avenda=C3=B1o?= Date: Fri, 16 Feb 2018 11:21:21 -0400 Subject: [PATCH] HOR-4353 --- workflow/engine/classes/PMPluginRegistry.php | 9 ++++----- .../engine/src/ProcessMaker/Plugins/PluginRegistry.php | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/workflow/engine/classes/PMPluginRegistry.php b/workflow/engine/classes/PMPluginRegistry.php index 69548adb5..3851910b7 100644 --- a/workflow/engine/classes/PMPluginRegistry.php +++ b/workflow/engine/classes/PMPluginRegistry.php @@ -1377,11 +1377,10 @@ class PMPluginRegistry if (empty($this->_restExtendServices[$namespace])) { $this->_restExtendServices[$namespace] = new stdClass(); } - $this->_restExtendServices[$namespace]->{$className} = [ - 'filePath' => $classFile, - 'classParent' => $className, - 'classExtend' => 'Ext' . $className - ]; + $this->_restExtendServices[$Namespace]->{$className} = new stdClass(); + $this->_restExtendServices[$Namespace]->{$className}->filePath = $classFile; + $this->_restExtendServices[$Namespace]->{$className}->classParent = $className; + $this->_restExtendServices[$Namespace]->{$className}->classExtend = 'Ext' . $className; } } diff --git a/workflow/engine/src/ProcessMaker/Plugins/PluginRegistry.php b/workflow/engine/src/ProcessMaker/Plugins/PluginRegistry.php index ae4afe370..73a90514b 100644 --- a/workflow/engine/src/ProcessMaker/Plugins/PluginRegistry.php +++ b/workflow/engine/src/ProcessMaker/Plugins/PluginRegistry.php @@ -1261,11 +1261,10 @@ class PluginRegistry if (empty($this->_restExtendServices[$Namespace])) { $this->_restExtendServices[$Namespace] = new stdClass(); } - $this->_restExtendServices[$Namespace]->{$ClassName} = [ - 'filePath' => $classFile, - 'classParent' => $ClassName, - 'classExtend' => 'Ext' . $ClassName - ]; + $this->_restExtendServices[$Namespace]->{$ClassName} = new stdClass(); + $this->_restExtendServices[$Namespace]->{$ClassName}->filePath = $classFile; + $this->_restExtendServices[$Namespace]->{$ClassName}->classParent = $ClassName; + $this->_restExtendServices[$Namespace]->{$ClassName}->classExtend = 'Ext' . $ClassName; } }