Skip to content

Commit 9675ecc

Browse files
committed
Added SystemConfigResolver
1 parent d42663b commit 9675ecc

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
/**
5+
* This source file is available under the terms of the
6+
* Pimcore Open Core License (POCL)
7+
* Full copyright and license information is available in
8+
* LICENSE.md which is distributed with this source code.
9+
*
10+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
11+
* @license Pimcore Open Core License (POCL)
12+
*/
13+
14+
namespace Pimcore\Bundle\StaticResolverBundle\Lib\Helper;
15+
16+
use Pimcore\Helper\SystemConfig;
17+
use Pimcore\Config\LocationAwareConfigRepository;
18+
19+
/**
20+
* @internal
21+
*/
22+
final class SystemConfigResolver implements SystemConfigResolverInterface
23+
{
24+
public function getConfigDataByKey(LocationAwareConfigRepository $repository, string $key): array
25+
{
26+
return SystemConfig::getConfigDataByKey($repository, $key);
27+
}
28+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
/**
5+
* This source file is available under the terms of the
6+
* Pimcore Open Core License (POCL)
7+
* Full copyright and license information is available in
8+
* LICENSE.md which is distributed with this source code.
9+
*
10+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
11+
* @license Pimcore Open Core License (POCL)
12+
*/
13+
14+
namespace Pimcore\Bundle\StaticResolverBundle\Lib\Helper;
15+
16+
use Pimcore\Config\LocationAwareConfigRepository;
17+
18+
/**
19+
* @internal
20+
*/
21+
interface SystemConfigResolverInterface
22+
{
23+
public function getConfigDataByKey(LocationAwareConfigRepository $repository, string $key): array;
24+
}

0 commit comments

Comments
 (0)