From 1e202b89308a6b35a389d9d24afb4a5fe9d6e545 Mon Sep 17 00:00:00 2001 From: gary houbre Date: Mon, 5 Oct 2020 15:58:13 +0200 Subject: [PATCH] Missing Namespace --- event_dispatcher.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/event_dispatcher.rst b/event_dispatcher.rst index b162fe035f1..c7fa7b7d905 100644 --- a/event_dispatcher.rst +++ b/event_dispatcher.rst @@ -289,6 +289,8 @@ This alias mapping can be extended for custom events by registering the compiler pass ``AddEventAliasesPass``:: // src/Kernel.php + namespace App; + use App\Event\MyCustomEvent; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\EventDispatcher\DependencyInjection\AddEventAliasesPass;