2021-05-07 23:35:49 +02:00
|
|
|
<?php
|
|
|
|
|
2021-05-08 00:30:35 +02:00
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
2021-05-07 23:35:49 +02:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2021-05-08 11:53:08 +02:00
|
|
|
namespace D3\OxidServiceBridges\Internal\Framework\Module\Path;
|
2021-05-07 23:35:49 +02:00
|
|
|
|
|
|
|
use OxidEsales\EshopCommunity\Internal\Framework\Module\Path\ModulePathResolverInterface;
|
|
|
|
|
|
|
|
class ModulePathResolverBridge implements ModulePathResolverBridgeInterface
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var ModulePathResolverInterface
|
|
|
|
*/
|
2024-02-01 14:43:31 +01:00
|
|
|
private ModulePathResolverInterface $modulePathResolver;
|
2021-05-07 23:35:49 +02:00
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|