1 | <?php |
||
20 | class SettingExtension extends \Twig_Extension |
||
21 | { |
||
22 | /** |
||
23 | * Extension name |
||
24 | */ |
||
25 | const NAME = 'ongr_setting_extension'; |
||
26 | |||
27 | /** |
||
28 | * @var SettingsManager |
||
29 | */ |
||
30 | private $manager; |
||
31 | |||
32 | /** |
||
33 | * @param SettingsManager $manager |
||
34 | */ |
||
35 | public function __construct($manager) |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | public function getName() |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function getFunctions() |
||
57 | |||
58 | /** |
||
59 | * @param string $name |
||
60 | * @param bool $default |
||
61 | * |
||
62 | * @return mixed |
||
63 | */ |
||
64 | public function getSettingValue($name, $default = false) |
||
68 | } |
||
69 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.