File tree Expand file tree Collapse file tree 2 files changed +69
-0
lines changed
src/Models/Asset/Image/Thumbnail Expand file tree Collapse file tree 2 files changed +69
-0
lines changed Original file line number Diff line number Diff line change 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+ namespace Pimcore \Bundle \StaticResolverBundle \Models \Asset \Image \Thumbnail ;
18+
19+ use Exception ;
20+ use Pimcore \Model \Asset \Image \Thumbnail \Config ;
21+
22+ /**
23+ * @internal
24+ */
25+ final class ConfigResolver implements ConfigResolverInterface
26+ {
27+ /**
28+ * @throws Exception
29+ */
30+ public function getByName (string $ name ): ?Config
31+ {
32+ return Config::getByName ($ name );
33+ }
34+
35+ public function getPreviewConfig (): Config
36+ {
37+ return Config::getPreviewConfig ();
38+ }
39+ }
Original file line number Diff line number Diff line change 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+ namespace Pimcore \Bundle \StaticResolverBundle \Models \Asset \Image \Thumbnail ;
18+
19+ use Exception ;
20+ use Pimcore \Model \Asset \Image \Thumbnail \Config ;
21+
22+ interface ConfigResolverInterface
23+ {
24+ /**
25+ * @throws Exception
26+ */
27+ public function getByName (string $ name ): ?Config ;
28+
29+ public function getPreviewConfig (): Config ;
30+ }
You can’t perform that action at this time.
0 commit comments