| 1 | <?php |
||
| 11 | class TemplateSubscriber implements EventSubscriberInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var Twig_Environment |
||
| 15 | */ |
||
| 16 | protected $twig; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var ApplicationConfiguration |
||
| 20 | */ |
||
| 21 | protected $configuration; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * TemplateSubscriber constructor. |
||
| 25 | * |
||
| 26 | * @param Twig_Environment $twig |
||
| 27 | * @param ConfigurationFactory $configurationFactory |
||
| 28 | */ |
||
| 29 | public function __construct(Twig_Environment $twig, ConfigurationFactory $configurationFactory) |
||
| 30 | { |
||
| 31 | $this->twig = $twig; |
||
| 32 | $this->configuration = $configurationFactory->getApplicationConfiguration(); |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return array |
||
| 37 | */ |
||
| 38 | public static function getSubscribedEvents() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * |
||
| 47 | * @return null |
||
| 48 | */ |
||
| 49 | public function kernelView() |
||
| 53 | } |
||
| 54 |