mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 15:06:06 +00:00
fix naming
This commit is contained in:
@@ -46,10 +46,10 @@ class HookManager
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $ignoredMethods = array(
|
||||
protected $ignoredMethodList = array(
|
||||
'__construct',
|
||||
'getDependencyList',
|
||||
'inject',
|
||||
'inject'
|
||||
);
|
||||
|
||||
protected $paths = array(
|
||||
@@ -168,7 +168,7 @@ class HookManager
|
||||
$className = Util::getClassName($hookFilePath);
|
||||
|
||||
$classMethods = get_class_methods($className);
|
||||
$hookMethods = array_diff($classMethods, $this->ignoredMethods);
|
||||
$hookMethods = array_diff($classMethods, $this->ignoredMethodList);
|
||||
|
||||
foreach($hookMethods as $hookName) {
|
||||
$entityHookData = isset($hookData[$scopeName][$hookName]) ? $hookData[$scopeName][$hookName] : array();
|
||||
|
||||
Reference in New Issue
Block a user