File tree Expand file tree Collapse file tree 2 files changed +52
-0
lines changed
Expand file tree Collapse file tree 2 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments