Symfony\Component\EventDispatcher\Event
Event is the base class for classes containing event data.
This class contains no event data. It is used by events that do not pass
state information to an event handler when an event is raised.
You can call the method stopPropagation() to abort the execution of
further listeners in your event listener.
- Author: Guilherme Blanco <guilhermeblanco@hotmail.com>
Synopsis
class Event
{
- // members
- private Boolean $propagationStopped;
- private EventDispatcher $dispatcher;
- private string $name;
- // methods
- public Boolean isPropagationStopped()
- public void stopPropagation()
- public void setDispatcher()
- public EventDispatcherInterface getDispatcher()
- public string getName()
- public void setName()
Hierarchy
Extended by
- Symfony\Component\Console\Event\ConsoleTerminateEvent
- Symfony\Component\Console\Event\ConsoleCommandEvent
- Symfony\Component\Console\Event\ConsoleEvent
- Symfony\Component\Console\Event\ConsoleExceptionEvent
- Symfony\Component\EventDispatcher\GenericEvent
- Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent
- Symfony\Component\HttpKernel\Event\KernelEvent
- Symfony\Component\HttpKernel\Event\FilterResponseEvent
- Symfony\Component\HttpKernel\Event\PostResponseEvent
- Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent
- Symfony\Component\HttpKernel\Event\GetResponseEvent
- Symfony\Component\HttpKernel\Event\FilterControllerEvent
- Symfony\Component\Form\FormEvent
- Symfony\Component\Security\Core\Event\AuthenticationEvent
- Symfony\Component\Security\Core\Event\AuthenticationFailureEvent
- Symfony\Component\Security\Http\Event\SwitchUserEvent
- Symfony\Component\Security\Http\Event\InteractiveLoginEvent
Members
private
- $dispatcher — Symfony\Component\EventDispatcher\EventDispatcher
- $name — string
- $propagationStopped — Symfony\Component\EventDispatcher\Boolean
Methods
public
- getDispatcher() — Returns the EventDispatcher that dispatches this Event
- getName() — Gets the event's name.
- isPropagationStopped() — Returns whether further event listeners should be triggered.
- setDispatcher() — Stores the EventDispatcher that dispatches this Event
- setName() — Sets the event's name property.
- stopPropagation() — Stops the propagation of the event to further event listeners.