RuntimeException where dev defines cafile location

This issue has been created since 2019-02-13.

After upgrading a symfony project, I got an error parsing the config for swiftmailer. The item that seemed to be causing the issue was "cafile". I had stream_options defined in both config.yml and config-dev.yml. Only in the dev file I added the cafile item. On upgrade it caused an issue.

My config.yml has this:

swiftmailer:
    transport: "%mailer_transport%"
    host:      "%mailer_host%"
    username:  "%mailer_user%"
    password:  "%mailer_password%"
    auth_mode: "%mailer_auth_mode%"
    port:      "%mailer_port%"
    encryption: "%mailer_encryption%"
#    spool:     { type: memory }
    logging:  true
    stream_options:
        ssl:
            allow_self_signed: true
            verify_peer: false
            verify_peer_name: false

but my config_dev.yml has this:

swiftmailer:
    spool:     { type: memory }
    stream_options:
        ssl:
            allow_self_signed: true
            verify_peer: false
            verify_peer_name: false
            cafile: "C:\\php7\\cacert.pem"

Notice the extra line for the "cafile" that is not in the config.yml.

Why should this make a difference?

fabpot wrote this answer on 2022-02-06

Closing as this bundle is not maintained anymore.

More Details About Repo
Owner Name symfony
Repo Name swiftmailer-bundle
Full Name symfony/swiftmailer-bundle
Language PHP
Created Date 2011-10-25
Updated Date 2022-09-27
Star Count 1565
Watcher Count 29
Fork Count 150
Issue Count 0

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
logiKM接kafka2.7.0集群报zook连接错误 1 2022-03-09 2022-09-01
Cannot establish connection to deezer 4 2021-05-06 2022-09-27
[Question] Icon Selection under "New collection" 2 2021-09-17 2022-09-27
Collapsed Tag Search 1 2021-07-17 2022-09-27
German translation of delete option 0 2021-11-01 2022-09-27
Assignment from S-array at k-rate fails 4 2022-02-09 2022-08-31
Note export loses markdown formatting 1 2022-02-08 2022-08-23
ASL is running at half speed 1 2021-11-16 2022-09-06
Content-driven components example in default starter is confusing 1 2020-12-21 2022-06-14
Are headers case insensitive? 6 2021-10-04 2022-09-27
Wrong keys in SignerFromJson 0 2021-05-27 2022-06-13
Error generated when adding git layer to .spacemacs 4 2021-10-22 2022-09-27
curvefs/metaserver&client: fs info get from mds instead of conf 0 2022-01-20 2022-09-18
`--test` doesn't behave properly if several rules have a period in their name. 2 2022-03-22 2022-09-23
GridFS support 2 2021-08-04 2022-01-11
在app.ts中调用 Taro.showModal 在h5开发环境下第一次正常显示,刷新页面 一闪后消失。 3 2022-01-21 2022-08-17
Full Name Preview Not Updating til Blur 2 2018-12-01 2022-09-11
Improve opening/emptying times picker 2 2021-10-17 2022-07-12
Numba CUDA Array interface faster than Pytorch CUDA Array 9 2022-01-05 2022-09-27
Add variant fields to suggest API to support experimentation 0 2021-08-17 2021-12-04
Message is sent to inactive devices 1 2022-02-11 2022-09-01
Frequent Websocket and TCP Keep Alives keep LTE connection open and drain battery 24 2020-07-28 2022-08-05
调试连接建立后长时间闲置会自动断开 0 2021-10-12 2022-01-16
MySQL init process hangs when using image mariadb 10.1.42, 10.2.27, 10.3.18, 10.4.8 36 2019-09-20 2022-09-27
Capsule Layer 1 2021-02-04 2022-01-11
realtime subscription fails after 1 hour on non rls table. 6 2021-12-01 2022-08-03
Dialing out from an Audio Conference meeting to your mobile phone with the Microsoft Teams app or Skype for Business app installed to destinations that aren't already included in your subscription 2 2022-06-01 2022-09-28
Recurring jobs for every second 6 2021-03-15 2022-09-18
NuGets missing 2 2020-03-24 2022-01-22
Should return 500 if openwhisk token check fails with a non 4xx error code 2 2021-05-20 2022-09-11
Lab Test Sample vs Sample Collection 2 2022-07-06 2022-09-18
ETCD KeepAlive Help 0 2021-07-30 2022-01-09
Include a hard macro for timezone source 0 2022-03-14 2022-09-12
Sceenshot active monitor 0 2021-06-03 2022-09-21
Bump pillow version for Python 3.9 support on Windows 9 2021-04-04 2022-09-21
Add resources snippets for JSON and JSONC files 0 2021-11-09 2022-09-13
Fixed several permission problems for recent android versions. 0 2019-09-17 2022-09-21
chore(deps): update jest monorepo to ^27.0.6 0 2021-06-28 2022-01-08
stackcollapse-vtune.pl fails on warnings from vtune 2020.1 0 2020-05-27 2022-09-26
Android build fails on Mac M1 15 2021-09-23 2022-09-21
Update method firing when input field blurs 1 2017-05-08 2022-08-26
RequestScope not active when using Fault Tolerance 2 2022-01-14 2022-09-27
Config source implementation is not getting loaded 1 2022-01-18 2022-09-27
Leverage the GS1 'provenancestatement' field 3 2021-09-21 2022-07-22
Release Version 2.2.0 1 2022-07-26 2022-09-21
preview.sh in Windows: newline ff problems 2 2021-04-02 2022-07-16
[zeromq-libzmq] Built with /GL and /LTCG for static libraries 9 2021-10-24 2022-09-27
JUST WANT TO SET MYSELF FREE FROM eslint-plugin-prettier 1 2022-08-14 2022-09-20
加载不了环信的图片地址 0 2022-01-10 2022-01-14
I used <Navbar> inside <Layout> simply to show you that <Navbar> renders fine only inside <Layout> Tag not otherwise will add screenshots of output for the following code which I need to achieve. Also I just want to get rid of Footer From <Layout> only need the Navbar so I better render only Navbar right? 1 2021-08-21 2022-09-08