Get value from service.yml : <p>I would like to create constants value for all my application.</p>

<p>In order to do that, the documentation seems to do something like that, in app/config/services.yml</p>

<pre><code>parameters:
    #parameter_name: value
    CODE_OK: !php/const 200
    CODE_CREATED: !php/const 201
    CODE_MISSING_ARG : !php/const 400
    CODE_INVALID_ARG : !php/const 419
</code></pre>

<p>Now I would like to be able to use those values inside a Controller...but I can't find the good way.May be using the service.yml isn't the right way.</p>
