Initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?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) {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user