<?xml version="1.0" ?>

<container xmlns="http://symfony.com/schema/dic/services"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

    <services>
        <service id="limenius_react.render_extension" class="Limenius\ReactRenderer\Twig\ReactRenderExtension">
            <argument type="service" id="limenius_react.react_renderer" on-invalid="null"/>
            <argument type="service" id="limenius_react.context_provider" />
            <argument>%limenius_react.default_rendering%</argument>
            <argument>%limenius_react.trace%</argument>
            <tag name="twig.extension" />
        </service>
    </services>
</container>

<?xml version="1.0" ?>

<container xmlns="http://symfony.com/schema/dic/services"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

    <parameters>
        <parameter key="limenius_react.render_extension.class">Limenius\ReactRenderer\Twig\ReactRenderExtension</parameter>
    </parameters>

    <services>
        <service id="limenius_react.render_extension" class="%limenius_react.render_extension.class%">
            <argument type="service" id="limenius_react.react_renderer" on-invalid="null"/>
            <argument type="service" id="limenius_react.context_provider" />
            <argument>%limenius_react.default_rendering%</argument>
            <argument>%limenius_react.trace%</argument>
            <tag name="twig.extension" />
        </service>
    </services>
</container>

Set RenderExtension class as a parameter in the container
Set RenderExtension class as a parameter in the container
