From c43e367efd6974fe1bd796338b420cf872d2ae34 Mon Sep 17 00:00:00 2001 From: GplCart Date: Sat, 10 Mar 2018 22:41:25 +0200 Subject: [PATCH] Removed core Library::clearCache() --- Main.php | 43 +------------------------------------------ 1 file changed, 1 insertion(+), 42 deletions(-) diff --git a/Main.php b/Main.php index 243524c..2356cad 100644 --- a/Main.php +++ b/Main.php @@ -9,7 +9,6 @@ namespace gplcart\modules\image; -use gplcart\core\Library; use gplcart\core\Module; /** @@ -24,20 +23,12 @@ class Main */ protected $module; - /** - * Library class instance - * @var \gplcart\core\Library $library - */ - protected $library; - /** * @param Module $module - * @param Library $library */ - public function __construct(Module $module, Library $library) + public function __construct(Module $module) { $this->module = $module; - $this->library = $library; } /** @@ -67,38 +58,6 @@ public function hookImageStyleActionHandlers(array &$handlers) $handlers = array_merge($handlers, $this->getActionHandlers()); } - /** - * Implements hook "module.enable.after" - */ - public function hookModuleEnableAfter() - { - $this->library->clearCache(); - } - - /** - * Implements hook "module.disable.after" - */ - public function hookModuleDisableAfter() - { - $this->library->clearCache(); - } - - /** - * Implements hook "module.install.after" - */ - public function hookModuleInstallAfter() - { - $this->library->clearCache(); - } - - /** - * Implements hook "module.uninstall.after" - */ - public function hookModuleUninstallAfter() - { - $this->library->clearCache(); - } - /** * Returns an array of image style actions * @return array