2017 © Pedro Peláez
 

library debug-swiftmailer-bundle

SwiftMailer Extension Bundle for debugging with Behat and Web Profiler

image

sgomez/debug-swiftmailer-bundle

SwiftMailer Extension Bundle for debugging with Behat and Web Profiler

  • Saturday, January 9, 2016
  • by decano
  • Repository
  • 1 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 7 % Grown

The README.md

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)

The Versions