2022-10-24 22:24:40 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
2022-11-04 22:45:47 +01:00
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
2022-10-24 22:24:40 +02:00
|
|
|
*
|
2022-11-04 22:45:47 +01:00
|
|
|
* https://www.d3data.de
|
2022-10-24 22:24:40 +02:00
|
|
|
*
|
|
|
|
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
|
2022-11-04 22:45:47 +01:00
|
|
|
* @author D3 Data Development - Daniel Seifert <info@shopmodule.com>
|
|
|
|
* @link https://www.oxidmodule.com
|
2022-10-24 22:24:40 +02:00
|
|
|
*/
|
|
|
|
|
2022-11-04 22:02:44 +01:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2022-10-24 22:24:40 +02:00
|
|
|
namespace D3\Webauthn\Setup;
|
|
|
|
|
2022-10-31 23:17:04 +01:00
|
|
|
use OxidEsales\Eshop\Core\Exception\DatabaseConnectionException;
|
|
|
|
use OxidEsales\Eshop\Core\Exception\DatabaseErrorException;
|
2022-10-24 22:24:40 +02:00
|
|
|
|
|
|
|
class Events
|
|
|
|
{
|
2022-10-26 10:17:31 +02:00
|
|
|
/**
|
|
|
|
* Execute action on activate event
|
2022-12-10 23:55:53 +01:00
|
|
|
* @codeCoverageIgnore
|
2022-10-31 23:17:04 +01:00
|
|
|
* @return void
|
|
|
|
* @throws DatabaseConnectionException
|
|
|
|
* @throws DatabaseErrorException
|
2022-10-24 22:24:40 +02:00
|
|
|
*/
|
|
|
|
public static function onActivate()
|
|
|
|
{
|
2022-11-07 16:00:53 +01:00
|
|
|
if (defined('OXID_PHP_UNIT')) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2022-12-10 23:55:53 +01:00
|
|
|
$actions = oxNew(Actions::class);
|
|
|
|
$actions->setupModule();
|
|
|
|
$actions->regenerateViews();
|
|
|
|
$actions->clearCache();
|
|
|
|
$actions->seoUrl();
|
2022-10-31 23:17:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2022-12-10 23:55:53 +01:00
|
|
|
* @codeCoverageIgnore
|
2022-10-31 23:17:04 +01:00
|
|
|
* @return void
|
|
|
|
*/
|
2022-12-10 23:55:53 +01:00
|
|
|
public static function onDeactivate(): void
|
2022-10-31 23:17:04 +01:00
|
|
|
{
|
|
|
|
}
|
2022-12-13 22:24:33 +01:00
|
|
|
}
|