by Petr Škoda.
Events are not contexts.
event->trigger() does a lot more than just triggering of the event (see my sample code), clearly external function or method trigger($event) can not do that because it does not have access to protected and private properties.
event->trigger() does a lot more than just triggering of the event (see my sample code), clearly external function or method trigger($event) can not do that because it does not have access to protected and private properties.