1 | <?php |
||
36 | class InstallService extends \Gilbertsoft\Lib\Service\AbstractInstallService |
||
37 | { |
||
38 | /** |
||
39 | * Executes the setup tasks if extension is installed. |
||
40 | * |
||
41 | * @param string $extensionKey Installed extension key |
||
42 | */ |
||
43 | public function afterInstall($extensionKey) |
||
44 | { |
||
45 | if ($extensionKey == $this->extensionKey) |
||
46 | { |
||
47 | $this->showFlashMessage('afterInstall'); |
||
48 | } |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * Executes the setup tasks if extension is uninstalled. |
||
53 | * |
||
54 | * @param string $extensionKey Uninstalled extension key |
||
55 | */ |
||
56 | public function afterUninstall($extensionKey) |
||
57 | { |
||
58 | if ($extensionKey == $this->extensionKey) |
||
59 | { |
||
60 | $this->showFlashMessage('afterUninstall'); |
||
61 | } |
||
62 | } |
||
63 | } |
||
64 |