void propagateEvent(
String
$type, [Array
$params = array()]
)
|
|
Call EventDispatcher::propagateEvent('foo', array()); for sending the event 'foo' with no parameter.
Call EventDispatcher::propagateEvent('bar', array('id' => 1)); for sending the event 'bar' with the parameter id = 1.
Parameters:
|
String |
$type: |
the event type to broadcast |
|
Array |
$params: |
the parameter to send along |