File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -44,16 +44,17 @@ public function getRoutes(): array
4444 public function initialize ($ cli = false ): void
4545 {
4646 $ this ->addWidget (new ReferenceWidget ());
47+
4748 $ this ->addTwigExtension (new Twig ());
4849
4950 $ this ->addTwigNamespace ('reference-extension ' );
5051
51- $ this ->registerListener ('kernel.response ' , [new EventListener (), 'handleEvent ' ]);
52+ $ this ->addListener ('kernel.response ' , [new EventListener (), 'handleEvent ' ]);
5253 }
5354
5455 /**
5556 * Ran automatically, if the current request is from the command line (CLI).
56- * You can use this method to set up things in you extension.
57+ * You can use this method to set up things in your extension.
5758 *
5859 * Note: This runs on every request. Make sure what happens here is quick
5960 * and efficient.
You can’t perform that action at this time.
0 commit comments