symfony/SwiftmailerBundle — pull request #24 by matthiasnoback (2012-10-02 10:32:00+00:00)
Title: Allow empty values for auth_mode and encryption

This is my situation: in config.yml I refer to parameters ``%mailer_encryption%`` and ``%mailer_auth_mode%``, which I define in parameters.ini. This means these parameters *have* to be defined. But when I don't use "auth_mode" or "encryption", and I leave these values empty, the configuration can not be loaded, due to the fact that the parse_ini_file() function converts empty values to empty strings, not to ``null`` values, and an empty string is not a valid option due to the SwiftmailerBundle's Configuration class. This asks for an extra allowed option (like the changeset I propose), or something like converting empty strings to null values using ``beforeNormalization()``.