Compare commits
5 Commits
master
...
dev_2.x_OX
Author | SHA1 | Date |
---|---|---|
Daniel Seifert | a803c158f0 | |
Daniel Seifert | f4ce2c5885 | |
Daniel Seifert | 8795c68dea | |
Daniel Seifert | 1b2ed6ab29 | |
Daniel Seifert | 63b013297b |
|
@ -1,42 +0,0 @@
|
|||
<?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\Doctrine\DBAL;
|
||||
|
||||
use Doctrine\DBAL\Connection;
|
||||
|
||||
class ConnectionBridge implements ConnectionBridgeInterface
|
||||
{
|
||||
/**
|
||||
* @var Connection
|
||||
*/
|
||||
private $connection;
|
||||
|
||||
public function __construct(
|
||||
Connection $connection
|
||||
) {
|
||||
$this->connection = $connection;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $moduleId
|
||||
* @param int $shopId
|
||||
* @return Connection
|
||||
*/
|
||||
public function getConnection(): Connection
|
||||
{
|
||||
return $this->connection;
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -13,16 +13,14 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace D3\OxidServiceBridges\Doctrine\DBAL;
|
||||
namespace D3\OxidServiceBridges\Internal\Framework\Module\Cache;
|
||||
|
||||
use Doctrine\DBAL\Connection;
|
||||
use OxidEsales\EshopCommunity\Internal\Framework\Module\Setup\Event\ModuleSetupEvent;
|
||||
|
||||
interface ConnectionBridgeInterface
|
||||
interface InvalidateModuleCacheEventSubscriberBridgeInterface
|
||||
{
|
||||
/**
|
||||
* @param string $moduleId
|
||||
* @param int $shopId
|
||||
* @return string
|
||||
* @param ModuleSetupEvent $event
|
||||
*/
|
||||
public function getConnection(): Connection;
|
||||
public function invalidateModuleCache(ModuleSetupEvent $event);
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -22,8 +22,8 @@
|
|||
"MIT"
|
||||
],
|
||||
"require": {
|
||||
"php": "^7.0 || ^8.0",
|
||||
"oxid-esales/oxideshop-ce": "6.5 - 6.13"
|
||||
"php": "^7.4 || ^8.0",
|
||||
"oxid-esales/oxideshop-ce": "7.0 - 7.0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
|
|
@ -1,10 +1,19 @@
|
|||
services:
|
||||
_defaults:
|
||||
autowire: true
|
||||
autowire: false
|
||||
public: true
|
||||
|
||||
D3\OxidServiceBridges\Doctrine\DBAL\ConnectionBridgeInterface:
|
||||
class: D3\OxidServiceBridges\Doctrine\DBAL\ConnectionBridge
|
||||
|
||||
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
|
||||
|
||||
OxidEsales\Smarty\Module\Setup\EventSubscriber\InstallSmartyExtensionEventsSubscriber:
|
||||
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