for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the Zikula package.
*
* Copyright Zikula - https://ziku.la/
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Zikula\MailerModule;
use Zikula\ExtensionsModule\Installer\AbstractExtensionInstaller;
class MailerModuleInstaller extends AbstractExtensionInstaller
{
public function install(): bool
$this->setVars($this->getDefaults());
return true;
}
public function upgrade(string $oldVersion): bool
switch ($oldVersion) {
case '1.5.0': // shipped with Core-1.4.3
case '1.5.1': // shipped with Core-2.0.15
$enableLogging = $this->getVar('enableLogging');
$this->delVars();
$this->setVar('enableLogging', $enableLogging);
// future upgrade routines
public function uninstall(): bool
// Deletion not allowed
return false;
/**
* Default module vars.
private function getDefaults(): array
return [
'enableLogging' => false
];