Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions src/Lib/Helper/SystemConfigResolver.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php
declare(strict_types=1);

/**
* This source file is available under the terms of the
* Pimcore Open Core License (POCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
* @license Pimcore Open Core License (POCL)
*/

namespace Pimcore\Bundle\StaticResolverBundle\Lib\Helper;

use Pimcore\Helper\SystemConfig;
use Pimcore\Config\LocationAwareConfigRepository;

/**
* @internal
*/
final class SystemConfigResolver implements SystemConfigResolverInterface
{
public function getConfigDataByKey(LocationAwareConfigRepository $repository, string $key): array
{
return SystemConfig::getConfigDataByKey($repository, $key);
}
}
24 changes: 24 additions & 0 deletions src/Lib/Helper/SystemConfigResolverInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
declare(strict_types=1);

/**
* This source file is available under the terms of the
* Pimcore Open Core License (POCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
* @license Pimcore Open Core License (POCL)
*/

namespace Pimcore\Bundle\StaticResolverBundle\Lib\Helper;

use Pimcore\Config\LocationAwareConfigRepository;

/**
* @internal
*/
interface SystemConfigResolverInterface
{
public function getConfigDataByKey(LocationAwareConfigRepository $repository, string $key): array;
}