Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce7fa39

Browse files
radnanweaverryan
authored andcommitted
include missing class instantiation in example code
1 parent 0f6cd89 commit ce7fa39

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/console/events.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ the wheel, it uses the Symfony EventDispatcher component to do the work::
1414
use Symfony\Component\Console\Application;
1515
use Symfony\Component\EventDispatcher\EventDispatcher;
1616

17+
$dispatcher = new EventDispatcher();
18+
1719
$application = new Application();
1820
$application->setDispatcher($dispatcher);
1921
$application->run();

0 commit comments

Comments
 (0)