Skip to content

Commit 680e126

Browse files
committed
Add PathFormatterResolver
1 parent 78e2f80 commit 680e126

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
/**
5+
* Pimcore
6+
*
7+
* This source file is available under two different licenses:
8+
* - GNU General Public License version 3 (GPLv3)
9+
* - Pimcore Commercial License (PCL)
10+
* Full copyright and license information is available in
11+
* LICENSE.md which is distributed with this source code.
12+
*
13+
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
14+
* @license http://www.pimcore.org/license GPLv3 and PCL
15+
*/
16+
17+
18+
namespace Pimcore\Bundle\StaticResolverBundle\Models\DataObject\ClassDefinition\Helper;
19+
20+
use Pimcore\Model\DataObject\ClassDefinition\Helper\PathFormatterResolver as PimcorePathFormatterResolver;
21+
use Pimcore\Model\DataObject\ClassDefinition\PathFormatterInterface;
22+
23+
/**
24+
* @internal
25+
*/
26+
final class PathFormatterResolver implements PathFormatterResolverInterface
27+
{
28+
public function resolvePathFormatter(string $formatterClass): ?PathFormatterInterface
29+
{
30+
return PimcorePathFormatterResolver::resolvePathFormatter($formatterClass);
31+
}
32+
}
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+
* Pimcore
6+
*
7+
* This source file is available under two different licenses:
8+
* - GNU General Public License version 3 (GPLv3)
9+
* - Pimcore Commercial License (PCL)
10+
* Full copyright and license information is available in
11+
* LICENSE.md which is distributed with this source code.
12+
*
13+
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
14+
* @license http://www.pimcore.org/license GPLv3 and PCL
15+
*/
16+
17+
18+
namespace Pimcore\Bundle\StaticResolverBundle\Models\DataObject\ClassDefinition\Helper;
19+
20+
use Pimcore\Model\DataObject\ClassDefinition\PathFormatterInterface;
21+
22+
/**
23+
* @internal
24+
*/
25+
interface PathFormatterResolverInterface
26+
{
27+
public function resolvePathFormatter(string $formatterClass): ?PathFormatterInterface;
28+
}

0 commit comments

Comments
 (0)