2018-10-17 23:48:20 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
2022-09-26 15:22:26 +02:00
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
2018-10-17 23:48:20 +02:00
|
|
|
*
|
2022-09-26 15:22:26 +02:00
|
|
|
* https://www.d3data.de
|
2018-10-17 23:48:20 +02:00
|
|
|
*
|
|
|
|
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
|
2022-09-26 15:22:26 +02:00
|
|
|
* @author D3 Data Development - Daniel Seifert <info@shopmodule.com>
|
|
|
|
* @link https://www.oxidmodule.com
|
2018-10-17 23:48:20 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
namespace D3\Totp\Setup;
|
|
|
|
|
|
|
|
use D3\ModCfg\Application\Model\Exception\d3ShopCompatibilityAdapterException;
|
|
|
|
use D3\ModCfg\Application\Model\Install\d3install;
|
|
|
|
use Doctrine\DBAL\DBALException;
|
|
|
|
use OxidEsales\Eshop\Core\Exception\DatabaseConnectionException;
|
|
|
|
use OxidEsales\Eshop\Core\Exception\DatabaseErrorException;
|
|
|
|
use OxidEsales\Eshop\Core\Exception\StandardException;
|
|
|
|
use OxidEsales\Eshop\Core\Exception\SystemComponentException;
|
|
|
|
|
|
|
|
class Events
|
|
|
|
{
|
|
|
|
/**
|
2019-08-14 23:15:05 +02:00
|
|
|
* @codeCoverageIgnore
|
2018-10-17 23:48:20 +02:00
|
|
|
* @throws d3ShopCompatibilityAdapterException
|
|
|
|
* @throws DBALException
|
|
|
|
* @throws DatabaseConnectionException
|
|
|
|
* @throws DatabaseErrorException
|
|
|
|
* @throws StandardException
|
|
|
|
* @throws SystemComponentException
|
|
|
|
*/
|
|
|
|
public static function onActivate()
|
|
|
|
{
|
|
|
|
if (class_exists(d3install::class)) {
|
|
|
|
d3install::checkUpdateStart();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-14 23:15:05 +02:00
|
|
|
/**
|
|
|
|
* @codeCoverageIgnore
|
|
|
|
*/
|
2018-10-17 23:48:20 +02:00
|
|
|
public static function onDeactivate()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|