Skip to content

Commit 96e5c77

Browse files
authored
Update Extension.php
1 parent e1123b3 commit 96e5c77

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Extension.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)