sgomez / debug-swiftmailer-bundle
SwiftMailer Extension Bundle for debugging with Behat and Web Profiler
Requires
- php: >=5.5.9
- behat/behat: ~3.0
- behat/symfony2-extension: ~2.1
- phpunit/phpunit: ~5.1
- swiftmailer/swiftmailer: ^5.0|^6.0
- symfony/dependency-injection: ~2.8|^3.0|^4.0
- symfony/web-profiler-bundle: ~2.8|^3.0|^4.0
Requires (Dev)
- henrikbjorn/phpspec-code-coverage: ^2.0
- phpspec/phpspec: ^2.4
This package is auto-updated.
Last update: 2024-08-15 18:48:50 UTC
README
This bundles provides a new DataCollector to the Symfony Web Profiler and a Behat Context to debug the spooled messages sent with SwiftMailer.
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:
$ composer require --dev sgomez/swiftmailer-bundle dev-master
This command requires you to have Composer installed globally, as explained in the Composer documentation.
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:
<?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:
default: extensions: Behat\Symfony2Extension: ~ Sgomez\DebugSwiftMailerBundle\ServiceContainer\Extension: ~
Acknowledgement
Work based on the next bundles and articles: