【发布时间】:2013-03-30 11:18:35
【问题描述】:
使用配置文件定义服务时,如何将 PHP 常量(本例中为 CURLAUTH_DIGEST)作为构造函数参数传递?
我现在无法测试,但我认为:
services:
my_service:
class: "%my_service.class%"
arguments: [CURLAUTH_DIGEST]
不起作用,因为 CURLAUTH_DIGEST 已转换为 string。
【问题讨论】: