1 | <?php |
||
12 | class RenderSubscriber implements EventSubscriberInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var LexerManager |
||
16 | */ |
||
17 | protected $twigLexerManager; |
||
18 | |||
19 | /** |
||
20 | * @var bool |
||
21 | */ |
||
22 | protected $stopPropagation = false; |
||
23 | |||
24 | /** |
||
25 | * RenderSubscriber constructor. |
||
26 | * |
||
27 | * @param LexerManager $twigLexerManager |
||
28 | */ |
||
29 | 12 | public function __construct(LexerManager $twigLexerManager) |
|
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | 1 | public static function getSubscribedEvents() |
|
45 | |||
46 | /** |
||
47 | * Set the custom twig lexer to display custom tags on the front |
||
48 | * |
||
49 | * @param GetResponseEvent $event |
||
50 | */ |
||
51 | 3 | public function updateTwigLexer(GetResponseEvent $event) |
|
58 | |||
59 | /** |
||
60 | * Rollback the custom twig lexer to display custom tags on the front |
||
61 | * |
||
62 | * @param FilterResponseEvent $event |
||
63 | */ |
||
64 | 1 | public function rollbackTwigLexer(FilterResponseEvent $event) |
|
69 | |||
70 | /** |
||
71 | * Rollback the custom twig lexer to display custom tags on the front |
||
72 | * |
||
73 | * @param GetResponseForExceptionEvent $event |
||
74 | */ |
||
75 | 1 | public function rollbackTwigLexerForException(GetResponseForExceptionEvent $event) |
|
80 | } |
||
81 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.