title: How to pass a PHP constant as service argument in Symfony 2?
body: <p>When defining services using the configuration file, how can I pass a PHP constant (<code>CURLAUTH_DIGEST</code> in this example) as a constructor argument?</p>
  
  <p>I <strong>can't test it right now</strong> but I assume that:</p>
  
  <pre class="lang-yaml prettyprint-override"><code>services:
      my_service:
          class: "%my_service.class%"
          arguments: [CURLAUTH_DIGEST]
  </code></pre>
  
  <p>Wouldn't work because <code>CURLAUTH_DIGEST</code> is converted to a <code>string</code>.</p>