When defining services using the configuration file, how can I pass a PHP constant (CURLAUTH_DIGEST
in this example) as a constructor argument?
I can't test it right now but I assume that:
services:
my_service:
class: "%my_service.class%"
arguments: [CURLAUTH_DIGEST]
Wouldn't work because CURLAUTH_DIGEST
is converted to a string
.