| 1 | <?php |
||
| 20 | final class SettingsExtension extends \Twig_Extension |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var ThemeContextInterface |
||
| 24 | */ |
||
| 25 | private $themeContext; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var ThemeSettingsManagerInterface |
||
| 29 | */ |
||
| 30 | private $themeSettingsManager; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritdoc} |
||
| 34 | */ |
||
| 35 | public function __construct(ThemeContextInterface $themeContext, ThemeSettingsManagerInterface $themeSettingsManager) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | public function getFunctions() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return array |
||
| 53 | */ |
||
| 54 | public function getThemeSettings() |
||
| 64 | |||
| 65 | /** |
||
| 66 | * {@inheritdoc} |
||
| 67 | */ |
||
| 68 | public function getName() |
||
| 72 | } |
||
| 73 |