My service configuration is:
<services>
<service id="my_service" class="Acme\HelloBundle\Hello">
<argument type="service" id="search" on-invalid="null" />
<argument>%other_bundle.class_name%</argument>
</service>
</services>
When service "search" is not defined I get null (thanks on-invalid="null").
But what if parameter %other_bundle.class_name% is not defined in this case I got error. Is any option what set to: <argument>%other_bundle.class_name%</argument>
that when parameter not exists I get null or empty string?
Thanks