Creates an event and fires it immediately.
If the event's target is specified its class is used to prefix the event type. For example,
if the event's target is an instance of ICanBoogie\Operation
and the event type is
process
the final event type will be ICanBoogie\Operation::process
.
Parameters
$target
- The target of the event.
$type
- The event type.
$payload
- Event payload.
Throws
PropertyIsReserved
in attempt to specify a reserved property with the payload.