You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some commands I use this kind of functionality to disable the sending of Emails: $this->getContainer()->get('event_dispatcher')->removeSubscriber($this->getContainer()->get('my_email_subscriber'));
After some debugging I found out that the EventDispatcher now holds closures to enhance LazyLoading in the $this->listeners array.
So the array_search check does not work anymore in function removeListener.
I'm not sure if this really is a bug or if there is a new way now to achieve this.