Symfony 奇怪的工厂.yml
我需要通过 symfony 发送一封电子邮件,但在我的 Factory.yml 中它有类似这样的内容
all:
routing:
class: sfPatternRouting
param:
generate_shortest_url: true
extra_parameters_as_query_string: true
view_cache_manager:
class: sfViewCacheManager
param:
cache_key_use_vary_headers: true
cache_key_use_host_name: true
我将它们修改为类似的内容:
all:
mailer:
param:
transport:
class: Swift_SmtpTransport
param:
host: smtp.gmail.com
port: 465
encryption: ssl
username: [email protected]
password: password
它会影响什么吗?或者上面原来的是什么?
I needed to send an email through symfony but in my factories.yml it has something like this
all:
routing:
class: sfPatternRouting
param:
generate_shortest_url: true
extra_parameters_as_query_string: true
view_cache_manager:
class: sfViewCacheManager
param:
cache_key_use_vary_headers: true
cache_key_use_host_name: true
And I modify them to something like:
all:
mailer:
param:
transport:
class: Swift_SmtpTransport
param:
host: smtp.gmail.com
port: 465
encryption: ssl
username: [email protected]
password: password
will it effect anything ? or what's the original on top does?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为什么要删除以前的值?只需合并这两个文件,如下所示:
否则路由和 view_cache_manager 的设置将是您可以在
lib/vendor/symfony
中的其他factories.yml
中找到的设置代码>Why remove the previous values? Just merge the two files, like this:
otherwise the settings for the routing and the view_cache_manager will be the one you can find on that other
factories.yml
somewhere inlib/vendor/symfony