This commit is contained in:
Daniel Seifert 2021-05-07 23:35:49 +02:00
commit 1deab651e2
Signed by: DanielS
GPG Key ID: 6A513E13AEE66170
4 changed files with 91 additions and 0 deletions

View File

@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
namespace D3\OxidServicesBridges\Internal\Framework\Module\Path;
use OxidEsales\EshopCommunity\Internal\Framework\Module\Path\ModulePathResolverInterface;
class ModulePathResolverBridge implements ModulePathResolverBridgeInterface
{
/**
* @var ModulePathResolverInterface
*/
private $modulePathResolver;
public function __construct(
ModulePathResolverInterface $modulePathResolver
) {
$this->modulePathResolver = $modulePathResolver;
}
/**
* @param string $moduleId
* @param int $shopId
* @return string
*/
public function getFullModulePathFromConfiguration(string $moduleId, int $shopId): string
{
return $this->modulePathResolver->getFullModulePathFromConfiguration($moduleId, $shopId);
}
}

View File

@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace D3\OxidServicesBridges\Internal\Framework\Module\Path;
interface ModulePathResolverBridgeInterface
{
/**
* @param string $moduleId
* @param int $shopId
* @return string
*/
public function getFullModulePathFromConfiguration(string $moduleId, int $shopId): string;
}

37
composer.json Normal file
View File

@ -0,0 +1,37 @@
{
"name": "d3/oxidservicesbridges",
"description": "Order manager module for OXID eShop.",
"type": "oxideshop-component",
"keywords": [
"oxid",
"modules",
"eShop",
"d3",
"ordermanager",
"orders",
"requirements",
"actions",
"tasks"
],
"authors": [
{
"name": "D3 Data Development (Inh. Thomas Dartsch)",
"email": "info@shopmodule.com",
"homepage": "https://www.d3data.de",
"role": "Owner"
}
],
"homepage": "https://www.oxidmodule.com/",
"license": [
"proprietary"
],
"require": {
"php": "^7.0 || ^8.0",
"oxid-esales/oxideshop-ce": "6.5 - 6.7"
},
"autoload": {
"psr-4": {
"D3\\OxidServicesBridges\\": "./"
}
}
}

8
services.yaml Normal file
View File

@ -0,0 +1,8 @@
services:
_defaults:
autowire: true
public: false
D3\OxidServicesBridges\Internal\Framework\Module\Path\ModulePathResolverBridgeInterface:
class: D3\OxidServicesBridges\Internal\Framework\Module\Path\ModulePathResolverBridge
public: true