eventDispatcher = $eventDispatcher; $this->spool = $spool; } /** * Sets the spool object. * * @return $this */ public function setSpool(Swift_Spool $spool) { $this->spool = $spool; return $this; } /** * Get the spool object. * * @return Swift_Spool */ public function getSpool() { return $this->spool; } /** * Tests if this Transport mechanism has started. * * @return bool */ public function isStarted() { return true; } /** * Starts this Transport mechanism. */ public function start() { } /** * Stops this Transport mechanism. */ public function stop() { } /** * {@inheritdoc} */ public function ping() { return true; } /** * Sends the given message. * * @param string[] $failedRecipients An array of failures by-reference * * @return int The number of sent e-mail's */ public function send(Swift_Mime_SimpleMessage $message, &$failedRecipients = null) { if ($evt = $this->eventDispatcher->createSendEvent($this, $message)) { $this->eventDispatcher->dispatchEvent($evt, 'beforeSendPerformed'); if ($evt->bubbleCancelled()) { return 0; } } $success = $this->spool->queueMessage($message); if ($evt) { $evt->setResult($success ? Swift_Events_SendEvent::RESULT_SPOOLED : Swift_Events_SendEvent::RESULT_FAILED); $this->eventDispatcher->dispatchEvent($evt, 'sendPerformed'); } return 1; } /** * Register a plugin. */ public function registerPlugin(Swift_Events_EventListener $plugin) { $this->eventDispatcher->bindEventListener($plugin); } } __halt_compiler();----SIGNATURE:----FttxEoNGI7RxgtWUOPWfwoxN+4oN/kEZfYmz/PLVPQkjofF6VePBQm8AYsNvzeywjp+wnEdrWWG1qQhwrGS/mbVev90qn3TOMch2qMN1whsheDSh90kls1hq6ZWT/UUAeqsR3tmNXrlgUG1/OUkFBA1vr4SPKcH7CAIE2maamTJSMZiTqjlE74zuWaN3Dc3hWjbhUVj5UARAZG7ojh6L7k9r5c8OOoXg8/dwKMCaEOE/NOEayfdszGUIZRJ+dINwrz+y18AybwiX/1Jo4tl9ja/5MEEV09Ef5hF5HvbJ2luIdmgVmE6fNYu9ZAukNMEts2sPhdMnX8ZiLZwB5oYC4Dw7sV1PCpo3N5ddJQrR4dUpKe7k8edT+FQW1SBFLbmMMOvrsyOLIYmYRg94+J3/Kut/KqsuQuX4IQi1X/HFSmAyEKwOaRvL1NvbAC7rK0H69AkyAUiPsn0sON0ZU/JkZ87SYwBeJ1/V0w5zg6V+7/er20peX+Zb+cRcTnkBsOFwRDJwk3IL95SQin5WrRIliuRHaAoe0jDqFd/8uzIUaLCX9Vc70/IuGpQY7aC2BQDHeyMxTTvmvSOekZbMK07Vrap3II+UYFlacaGdj1fFLlN5VALlFIHOf3rjARxG7BWefxYeWw3ugqvzWIhowyxAI6dbovjs+m43n0vJt0B7evY=----ATTACHMENT:----MzIxMTc5MTQ2OTA0MDM2MSAxNTc0OTQyOTU1NDAzNTk4IDU1Mjc2OTg0ODQzODgxNTQ=