So I have built up some custom feature on top of Espo, now its time to make things run a little better and faster, I would like to refactor some of my code I have created for hooks. I would like to extend the Espo/Core/Hooks/Base Class, can I do this in the Custom/Espo/Custom/Hooks folder by simple adding a Base.php with the following code:
Then in my Custom/espo/custom/hooks:
will this work?
Code:
namespace Espo\Core\Hooks; class BaseExtended extends \Espo\Core\Hooks\Base
Code:
namespace Espo\Core\Hooks; class MyHook extends \Espo\Custom\Hooks\BaseExtended
Comment