4 changed files with 49 additions and 7 deletions
@ -0,0 +1,21 @@
|
||||
<?php |
||||
|
||||
class AfterInstall |
||||
{ |
||||
protected $container; |
||||
|
||||
public function run($container) |
||||
{ |
||||
$this->container = $container; |
||||
|
||||
$this->clearCache(); |
||||
} |
||||
|
||||
protected function clearCache() |
||||
{ |
||||
try { |
||||
$this->container->get('dataManager')->clearCache(); |
||||
} catch (\Exception $e) { |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,21 @@
|
||||
<?php |
||||
|
||||
class AfterUninstall |
||||
{ |
||||
protected $container; |
||||
|
||||
public function run($container) |
||||
{ |
||||
$this->container = $container; |
||||
|
||||
$this->clearCache(); |
||||
} |
||||
|
||||
protected function clearCache() |
||||
{ |
||||
try { |
||||
$this->container->get('dataManager')->clearCache(); |
||||
} catch (\Exception $e) { |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue