-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some transports do not check for empty recipient lists. This way no email will be sent if there are no people to send it to, without throwing any exceptions
- Loading branch information
Showing
8 changed files
with
119 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
require_once __DIR__.'/../vendor/autoload.php'; | ||
|
||
spl_autoload_register(function($class) | ||
{ | ||
$file = __DIR__.DIRECTORY_SEPARATOR.'classes'.DIRECTORY_SEPARATOR.str_replace('_', '/', $class).'.php'; | ||
|
||
if (is_file($file)) | ||
{ | ||
require_once $file; | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
/** | ||
* @package openbuildings\swiftmailer-filter | ||
* @author Ivan Kerin <ikerin@gmail.com> | ||
* @copyright (c) 2013 OpenBuildings Ltd. | ||
* @license http://spdx.org/licenses/BSD-3-Clause | ||
*/ | ||
class TestListener implements \Swift_Events_SendListener | ||
{ | ||
private $event; | ||
|
||
public function event() | ||
{ | ||
return $this->event; | ||
} | ||
|
||
public function beforeSendPerformed(\Swift_Events_SendEvent $evt) | ||
{ | ||
$this->event = $evt; | ||
} | ||
|
||
/** | ||
* Do nothing | ||
* | ||
* @param Swift_Events_SendEvent $evt | ||
*/ | ||
public function sendPerformed(\Swift_Events_SendEvent $evt) | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters