Hi there! Perhaps you should be using the "disable_delivery" option (i.e. setting it to true)? In this case, the transport doesn't really matter, as delivery is disabled. This is how I would disable delivery in the test environment.
Does that help? Thanks! Ryan Weaver US Office Head & Trainer - KnpLabs - Nashville, TN http://www.knplabs.com <http://www.knplabs.com/en> http://www.thatsquality.com Twitter: @weaverryan On Fri, Mar 25, 2011 at 7:41 AM, Ruudk <[email protected]> wrote: > 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 > -- 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
