add InvalidateModuleCacheEventSubscriberBridge, register cache event subscriber alias
This commit is contained in:
parent
f4ce2c5885
commit
a803c158f0
|
@ -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\Internal\Framework\Module\Cache;
|
||||
|
||||
use OxidEsales\EshopCommunity\Internal\Framework\Module\Cache\InvalidateModuleCacheEventSubscriber;
|
||||
use OxidEsales\EshopCommunity\Internal\Framework\Module\Setup\Event\ModuleSetupEvent;
|
||||
|
||||
class InvalidateModuleCacheEventSubscriberBridge implements InvalidateModuleCacheEventSubscriberBridgeInterface
|
||||
{
|
||||
/**
|
||||
* @var InvalidateModuleCacheEventSubscriber
|
||||
*/
|
||||
private $eventSubscriber;
|
||||
|
||||
public function __construct(
|
||||
InvalidateModuleCacheEventSubscriber $eventSubscriber
|
||||
) {
|
||||
$this->eventSubscriber = $eventSubscriber;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ModuleSetupEvent $event
|
||||
*/
|
||||
public function invalidateModuleCache(ModuleSetupEvent $event)
|
||||
{
|
||||
$this->eventSubscriber->invalidateModuleCache($event);
|
||||
}
|
||||
}
|
|
@ -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\Internal\Framework\Module\Cache;
|
||||
|
||||
use OxidEsales\EshopCommunity\Internal\Framework\Module\Setup\Event\ModuleSetupEvent;
|
||||
|
||||
interface InvalidateModuleCacheEventSubscriberBridgeInterface
|
||||
{
|
||||
/**
|
||||
* @param ModuleSetupEvent $event
|
||||
*/
|
||||
public function invalidateModuleCache(ModuleSetupEvent $event);
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
services:
|
||||
_defaults:
|
||||
autowire: true
|
||||
autowire: false
|
||||
public: true
|
||||
|
||||
D3\OxidServiceBridges\Internal\Framework\Module\Path\ModulePathResolverBridgeInterface:
|
||||
|
@ -10,4 +10,10 @@ services:
|
|||
class: D3\OxidServiceBridges\Smarty\Module\Setup\EventSubscriber\InstallSmartyExtensionEventsSubscriberBridge
|
||||
|
||||
OxidEsales\Smarty\Module\Setup\EventSubscriber\InstallSmartyExtensionEventsSubscriber:
|
||||
alias: 'oxid_esales.smarty.setup.eventsubscriber.install_smarty_extension_events_subscriber'
|
||||
alias: 'oxid_esales.smarty.setup.eventsubscriber.install_smarty_extension_events_subscriber'
|
||||
|
||||
D3\OxidServiceBridges\Internal\Framework\Module\Cache\InvalidateModuleCacheEventSubscriberBridgeInterface:
|
||||
class: D3\OxidServiceBridges\Internal\Framework\Module\Cache\InvalidateModuleCacheEventSubscriberBridge
|
||||
|
||||
OxidEsales\EshopCommunity\Internal\Framework\Module\Cache\InvalidateModuleCacheEventSubscriber:
|
||||
alias: 'oxid_esales.module.cache.invalidate_module_cache_event_subscriber'
|
Loading…
Reference in New Issue