<?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="web_profiler.debug_toolbar.class">Symfony\Bundle\WebProfilerBundle\WebDebugToolbarListener</parameter>
    </parameters>

    <services>
        <service id="web_profiler.debug_toolbar" class="%web_profiler.debug_toolbar.class%">
            <tag name="kernel.listener" event="onCoreResponse" priority="-128" />
            <argument type="service" id="templating.engine.twig" />
            <argument>%web_profiler.debug_toolbar.intercept_redirects%</argument>
            <argument>%web_profiler.debug_toolbar.verbose%</argument>
        </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="web_profiler.debug_toolbar.class">Symfony\Bundle\WebProfilerBundle\WebDebugToolbarListener</parameter>
    </parameters>

    <services>
        <service id="web_profiler.debug_toolbar" class="%web_profiler.debug_toolbar.class%">
            <tag name="kernel.listener" event="core.response" method="onCoreResponse" priority="-128" />
            <argument type="service" id="templating.engine.twig" />
            <argument>%web_profiler.debug_toolbar.intercept_redirects%</argument>
            <argument>%web_profiler.debug_toolbar.verbose%</argument>
        </service>
    </services>
</container>

Update Core and Security events to latest model
Update Core and Security events to latest model

The main benefit is that in XML/YML files we have common syntax (i.e. core.controller, form.pre_bind) that properly namespaces event names (before: onCoreController was ok, preBind was not).
On the other hand in PHP land we also have namespaced events, CoreEvents::controller, FormEvents::preBind, before it was Events::onCoreController, Events::onPreBind, we now have more context.
