1 | <?php |
||
27 | final class ThemeExtension extends AbstractExtension |
||
28 | { |
||
29 | /** |
||
30 | * @var ThemeLogoProviderInterface |
||
31 | */ |
||
32 | private $themeLogoProvider; |
||
33 | |||
34 | /** |
||
35 | * @var TenantContextInterface |
||
36 | */ |
||
37 | private $tenantContext; |
||
38 | |||
39 | /** |
||
40 | * @var SettingsManagerInterface |
||
41 | */ |
||
42 | private $settingsManager; |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | */ |
||
47 | private $env; |
||
48 | |||
49 | /** |
||
50 | * ThemeExtension constructor. |
||
51 | * |
||
52 | * @param ThemeLogoProviderInterface $themeLogoProvider |
||
53 | * @param TenantContextInterface $tenantContext |
||
54 | * @param SettingsManagerInterface $settingsManager |
||
55 | * @param string $env |
||
56 | */ |
||
57 | public function __construct( |
||
68 | |||
69 | /** |
||
70 | * @return TwigFunction[] |
||
71 | */ |
||
72 | public function getFunctions(): array |
||
79 | |||
80 | /** |
||
81 | * @param string $fallBackPath |
||
82 | * |
||
83 | * @return string |
||
84 | */ |
||
85 | public function getThemeLogoPath(string $fallBackPath): string |
||
95 | |||
96 | /** |
||
97 | * @param string $setting |
||
98 | * |
||
99 | * @return string |
||
100 | * |
||
101 | * @throws \Exception |
||
102 | */ |
||
103 | public function getThemeSetting(string $setting): string |
||
115 | |||
116 | private function getSetting(string $setting): string |
||
127 | } |
||
128 |