From 4ab767e95bdbed1dbf947dd80dd6086ef53badac Mon Sep 17 00:00:00 2001 From: yuri Date: Mon, 29 Jul 2019 12:50:04 +0300 Subject: [PATCH] hook service factrory --- application/Espo/Core/Hooks/Base.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/application/Espo/Core/Hooks/Base.php b/application/Espo/Core/Hooks/Base.php index b2477141bf..4697f9e7aa 100644 --- a/application/Espo/Core/Hooks/Base.php +++ b/application/Espo/Core/Hooks/Base.php @@ -44,6 +44,7 @@ abstract class Base implements Injectable 'metadata', 'aclManager', 'user', + 'serviceFactory', ]; protected $dependencies = []; // for backward compatibility @@ -118,4 +119,9 @@ abstract class Base implements Injectable { return $this->getInjection('metadata'); } + + protected function getServiceFactory() + { + return $this->getInjection('serviceFactory'); + } }