Skip to content

Commit

Permalink
Removed core Library::clearCache()
Browse files Browse the repository at this point in the history
  • Loading branch information
gplcart committed Mar 10, 2018
1 parent 992111b commit c43e367
Showing 1 changed file with 1 addition and 42 deletions.
43 changes: 1 addition & 42 deletions Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

namespace gplcart\modules\image;

use gplcart\core\Library;
use gplcart\core\Module;

/**
Expand All @@ -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;
}

/**
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c43e367

Please sign in to comment.