Note that there are some explanatory texts on larger screens.

plurals
  1. POPassing "null" encryption from parameters.ini and using it in config.yml
    primarykey
    data
    text
    <p>I am trying to set a null value in <code>app/config/parameters.ini</code> and use it in <code>app/config/config.yml</code> for the <code>swiftmailer.encryption</code> config parameter. I need to set it in parameters.ini because I have different environments that each use different mail configuration.</p> <p>The <a href="http://symfony.com/doc/2.0/reference/configuration/swiftmailer.html#encryption" rel="nofollow">Symfony documentation</a> says that this config parameter should be a string value and that "valid values are tls, ssl, or null".</p> <p>My first guess would be to add <code>mailer_encryption="null"</code> to parameters.ini and <code>encryption: %mailer_encryption%</code> to config.yml. But that results in an error: </p> <blockquote> <p>"InvalidConfigurationException: Invalid configuration for path "swiftmailer.encryption": The "null" encryption is not supported".</p> </blockquote> <p>If I use <code>mailer_encryption=null</code> or <code>mailer_encryption=</code> in parameters.ini, I get another error:</p> <blockquote> <p>"InvalidConfigurationException: Invalid configuration for path "swiftmailer.encryption": The "" encryption is not supported".</p> </blockquote> <p>If I stop referencing the parameter by changing config.yml to <code>encryption:</code>, it works but this doesn't solve my objective.</p> <p>I am using Symfony 2.0.15, which includes Swiftmailer with it. <a href="https://github.com/symfony/symfony/tree/2.0" rel="nofollow">This is the 2.0 branch</a>.</p> <p>How can I get this working?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload