src/Dispatcher/EventDispatcherProxy.php
public static function trigger($name, Event $data)
    {
        if (self::$dispatcher) {
            if (!is_array($name)) {
                $name=array($name);
            }
            foreach ($name as $n) {
                call_user_func_array(self::$dispatcher, self::$dispatcher_args)->dispatch($n, $data);
            }
        }
    }
public static function trigger($name, Event $data)
    {
        if (self::$dispatcher) {
            if (!is_array($name)) {
                $name=array($name);
            }
            foreach ($name as $n) {
                call_user_func_array(self::$dispatcher, self::$dispatcher_args)->dispatch($n, $data);
            }
        }
    }
public static function trigger ( $ name , Event $ data ) { if ( self :: $ dispatcher ) { if ( ! is_array ( $ name ) ) { $ name = array ( $ name ) ; } foreach ( $ name as $ n ) { call_user_func_array ( self :: $ dispatcher , self :: $ dispatcher_args ) -> dispatch ( $ n , $ data ) ; } } }
Triggers event.
@param string $name
@param Event $data one of Glorpen\Propel\PropelBundle\Events
Triggers event .