initial
This commit is contained in:
commit
1deab651e2
31
Internal/Framework/Module/Path/ModulePathResolverBridge.php
Normal file
31
Internal/Framework/Module/Path/ModulePathResolverBridge.php
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
@ -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
37
composer.json
Normal 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
8
services.yaml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user