SwiftMailer Extension Bundle for debugging with Behat and Web Profiler
This bundles provides a new DataCollector to the Symfony Web Profiler and a Behat Context to debug the spooled
messages sent with SwiftMailer.
Open a command console, enter your project directory and execute the
following command to download the latest stable version of this bundle:
$ composer require --dev sgomez/swiftmailer-bundle dev-master
This command requires you to have Composer installed globally, as explained
in the Composer documentation.
Then, enable the bundle by adding it to the list of registered bundles in the
app/AppKernel.php
file of your project:
<?php
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new Sgomez\DebugSwiftMailerBundle\SgomezDebugSwiftMailerBundle(),
);
}
// ...
}
Load the extension of the bundle by adding this configuration in your behat.yml
file:
default:
extensions:
Behat\Symfony2Extension: ~
Sgomez\DebugSwiftMailerBundle\ServiceContainer\Extension: ~
Work based on the next bundles and articles: