add SmartyExtensionEventsSubscriberBridge

This commit is contained in:
Daniel Seifert 2023-01-05 13:50:11 +01:00
parent 1778cda674
commit 63b013297b
Signed by: DanielS
GPG Key ID: 8A7C4C6ED1915C6F
3 changed files with 70 additions and 0 deletions

View File

@ -0,0 +1,41 @@
<?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 <info@shopmodule.com>
* @link https://www.oxidmodule.com
*/
declare(strict_types=1);
namespace D3\OxidServiceBridges\Smarty\Module\Setup\EventSubscriber;
use OxidEsales\Smarty\Module\Setup\EventSubscriber\InstallSmartyExtensionEventsSubscriber;
use OxidEsales\EshopCommunity\Internal\Framework\Module\Setup\Event\FinalizingModuleActivationEvent;
class InstallSmartyExtensionEventsSubscriberBridge implements InstallSmartyExtensionEventsSubscriberBridgeInterface
{
/**
* @var InstallSmartyExtensionEventsSubscriber
*/
private $installSmartyExtensionEventsSubscriber;
public function __construct(
InstallSmartyExtensionEventsSubscriber $eventSubscriber
) {
$this->installSmartyExtensionEventsSubscriber = $eventSubscriber;
}
/**
* @param FinalizingModuleActivationEvent $event
*/
public function handleOnModuleActivation(FinalizingModuleActivationEvent $event): void
{
$this->installSmartyExtensionEventsSubscriber->handleOnModuleActivation($event);
}
}

View File

@ -0,0 +1,26 @@
<?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 <info@shopmodule.com>
* @link https://www.oxidmodule.com
*/
declare(strict_types=1);
namespace D3\OxidServiceBridges\Smarty\Module\Setup\EventSubscriber;
use OxidEsales\EshopCommunity\Internal\Framework\Module\Setup\Event\FinalizingModuleActivationEvent;
interface InstallSmartyExtensionEventsSubscriberBridgeInterface
{
/**
* @param FinalizingModuleActivationEvent $event
*/
public function handleOnModuleActivation(FinalizingModuleActivationEvent $event): void;
}

View File

@ -8,3 +8,6 @@ services:
D3\OxidServiceBridges\Internal\Framework\Module\Path\ModulePathResolverBridgeInterface:
class: D3\OxidServiceBridges\Internal\Framework\Module\Path\ModulePathResolverBridge
D3\OxidServiceBridges\Smarty\Module\Setup\EventSubscriber\InstallSmartyExtensionEventsSubscriberBridgeInterface:
class: D3\OxidServiceBridges\Smarty\Module\Setup\EventSubscriber\InstallSmartyExtensionEventsSubscriberBridge