protected function beforeSendPerformed(Swift_Mime_Message $message)
    {
        $event = new Swift_Events_SendEvent($this, $message);

        foreach ($this->plugins as $plugin) {

            if (method_exists($plugin, 'beforeSendPerformed')) {

                $plugin->beforeSendPerformed($event);

            }
        }
    }
protected function beforeSendPerformed(Swift_Mime_Message $message)
    {
        $event = new Swift_Events_SendEvent($this, $message);

        foreach ($this->plugins as $plugin) {

            if (method_exists($plugin, 'beforeSendPerformed')) {

                $plugin->beforeSendPerformed($event);

            }
        }
    }
protected function beforeSendPerformed ( Swift_Mime_Message $ message ) { $ event = new Swift_Events_SendEvent ( $ this , $ message ) ; foreach ( $ this -> plugins as $ plugin ) { if ( method_exists ( $ plugin , 'beforeSendPerformed' ) ) { $ plugin -> beforeSendPerformed ( $ event ) ; } } }
Iterate through registered plugins and execute plugins' methods.

@param  \Swift_Mime_Message  $message
Iterate through registered plugins and execute plugins methods .