linkmobility4oxid/src/Setup/Events.php

43 lines
1002 B
PHP
Raw Normal View History

2022-12-18 23:45:14 +01:00
<?php
/**
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* https://www.d3data.de
*
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
* @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
* @link https://www.oxidmodule.com
*/
declare(strict_types=1);
// @codeCoverageIgnoreStart
namespace D3\Linkmobility4OXID\Setup;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
class Events
{
/**
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
2023-01-10 23:33:48 +01:00
public static function onActivate(): void
2022-12-18 23:45:14 +01:00
{
/** @var Actions $actions */
2023-01-09 22:45:53 +01:00
$actions = d3GetOxidDIC()->get(Actions::class);
2022-12-18 23:45:14 +01:00
$actions->setupDatabase();
2023-01-14 22:08:47 +01:00
$actions->checkCmsItems();
2022-12-19 10:59:38 +01:00
$actions->regenerateViews();
2022-12-18 23:45:14 +01:00
}
2023-01-10 23:33:48 +01:00
public static function onDeactivate(): void
2022-12-18 23:45:14 +01:00
{
}
}
// @codeCoverageIgnoreEnd