<?xml version="1.0" encoding="UTF-8" ?>
<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="http_kernel" class="Symfony\Component\HttpKernel\HttpKernel">
            <argument type="service" id="event_dispatcher" />
            <argument type="service" id="controller_resolver" />
            <argument type="service" id="request_stack" />
        </service>

        <service id="event_dispatcher.default" class="Symfony\Component\EventDispatcher\EventDispatcher" />
        <service id="event_dispatcher" alias="event_dispatcher.default" />

        <service id="controller_resolver" class="Symfony\Component\HttpKernel\Controller\ControllerResolver" />

        <service id="request_stack" class="Symfony\Component\HttpFoundation\RequestStack" />

        <service id="request" class="Symfony\Component\HttpFoundation\Request">
            <factory class="Symfony\Component\HttpFoundation\Request" method="createFromGlobals" />
        </service>
        
        <service id="response" class="Symfony\Component\HttpFoundation\Response">
            <factory service="http_kernel" method="handle" />
            <argument type="service" id="request" />
        </service>
        
        <service id="filesystem" class="Symfony\Component\Filesystem\Filesystem" />
    </services>
</container>
<?xml version="1.0" encoding="UTF-8" ?>

<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="http_kernel" class="Symfony\Component\HttpKernel\HttpKernel">
            <argument type="service" id="event_dispatcher" />
            <argument type="service" id="controller_resolver" />
            <argument type="service" id="request_stack" />
        </service>

        <service id="event_dispatcher.default" class="Symfony\Component\EventDispatcher\EventDispatcher" />
        <service id="event_dispatcher" alias="event_dispatcher.default" />

        <service id="controller_resolver" class="Symfony\Component\HttpKernel\Controller\ControllerResolver" />

        <service id="request_stack" class="Symfony\Component\HttpFoundation\RequestStack" />

        <service id="request" class="Symfony\Component\HttpFoundation\Request">
            <factory class="Symfony\Component\HttpFoundation\Request" method="createFromGlobals" />
        </service>
        
        <service id="response" class="Symfony\Component\HttpFoundation\Response">
            <factory service="http_kernel" method="handle" />
            <argument type="service" id="request" />
        </service>
        
        <service id="filesystem" class="Symfony\Component\Filesystem\Filesystem" />
    </services>
</container>
Use XML for standard config
Use XML for standard config
