Hi,

I really want to use the NullTransport for the SwiftmailerBundle so that I 
can use it in the test environment.

<swiftmailer:config transport="null" />

The problem is that in the 
SwiftMailerBundle/DependencyInjection/Configuration.php file the option 
isn't added to the array of valid transports. I tried to add it but then I 
got stuck with this error:

Fatal error: Uncaught exception 'InvalidArgumentException' with message 'The 
null transport is not supported' in 
/www/symfonyproject/vendor/symfony/src/Symfony/Component/Config/Definition/Builder/ExprBuilder.php:169
 
Stack trace: 
#0 [internal function]: 
Symfony\Component\Config\Definition\Builder\{closure}(NULL) 
#1 
/www/symfonyproject/vendor/symfony/src/Symfony/Component/Config/Definition/Builder/ExprBuilder.php(215):
 
call_user_func(Object(Closure), NULL) 
#2 
/www/symfonyproject/vendor/symfony/src/Symfony/Component/Config/Definition/BaseNode.php(212):
 
Symfony\Component\Config\Definition\Builder\{closure}(NULL) 
#3 
/www/symfonyproject/vendor/symfony/src/Symfony/Component/Config/Definition/ArrayNode.php(208):
 
Symfony\Component\Config\Definition\BaseNode->finalize(NULL) 
#4 
/www/symfonyproject/vendor/symfony/src/Symfony/Component/Config/Definition/BaseNode.php(206):
 
Symfony\Component\Config\Definition\ArrayNode->finalizeValue(Array) 
#5 
/www/symfonyproject/vendor/symfony/src/Symfony/Component/Config/Definition/Processor.php(38):
 
Symfony\Component\Config\Defin in 
/www/symfonyproject/vendor/symfony/src/Symfony/Component/Config/Definition/BaseNode.php
 
on line 216


I think that the problem is that "null" is validated as invalid. When I 
change "null" to "devnull" for example and change the 
swiftmailer.transport.null ID it works!

How can this be fixed? 

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to