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