Compare commits
8 Commits
Author | SHA1 | Date |
---|---|---|
Daniel Seifert | c17a9534f6 | |
Daniel Seifert | 2ee9fa1521 | |
Daniel Seifert | 2351d7ce85 | |
Daniel Seifert | 5ae27428f7 | |
Daniel Seifert | e07354bec0 | |
Daniel Seifert | e3577703dd | |
Daniel Seifert | e2d385d0e4 | |
Daniel Seifert | e181dddfe0 |
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,28 +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;
|
|
||||||
|
|
||||||
interface ConnectionBridgeInterface
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @param string $moduleId
|
|
||||||
* @param int $shopId
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
public function getConnection(): Connection;
|
|
||||||
}
|
|
|
@ -22,7 +22,7 @@ class ModulePathResolverBridge implements ModulePathResolverBridgeInterface
|
||||||
/**
|
/**
|
||||||
* @var ModulePathResolverInterface
|
* @var ModulePathResolverInterface
|
||||||
*/
|
*/
|
||||||
private $modulePathResolver;
|
private ModulePathResolverInterface $modulePathResolver;
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
ModulePathResolverInterface $modulePathResolver
|
ModulePathResolverInterface $modulePathResolver
|
||||||
|
|
|
@ -22,8 +22,8 @@
|
||||||
"MIT"
|
"MIT"
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.0 || ^8.0",
|
"php": "^8.0",
|
||||||
"oxid-esales/oxideshop-ce": "6.5 - 6.13"
|
"oxid-esales/oxideshop-ce": "7.0 - 7.1"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
|
|
@ -3,8 +3,5 @@ services:
|
||||||
autowire: true
|
autowire: true
|
||||||
public: true
|
public: true
|
||||||
|
|
||||||
D3\OxidServiceBridges\Doctrine\DBAL\ConnectionBridgeInterface:
|
|
||||||
class: D3\OxidServiceBridges\Doctrine\DBAL\ConnectionBridge
|
|
||||||
|
|
||||||
D3\OxidServiceBridges\Internal\Framework\Module\Path\ModulePathResolverBridgeInterface:
|
D3\OxidServiceBridges\Internal\Framework\Module\Path\ModulePathResolverBridgeInterface:
|
||||||
class: D3\OxidServiceBridges\Internal\Framework\Module\Path\ModulePathResolverBridge
|
class: D3\OxidServiceBridges\Internal\Framework\Module\Path\ModulePathResolverBridge
|
||||||
|
|
Loading…
Reference in New Issue