<?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">
  <parameters>
    <parameter key="phpmentors_proxy_url_rewrite.proxy_packages.class">PHPMentors\ProxyURLRewriteBundle\Asset\ProxyPackages</parameter>
    <parameter key="phpmentors_proxy_url_rewrite.proxy_url.class">PHPMentors\ProxyURLRewriteBundle\ProxyUrl\ProxyUrl</parameter>
    <parameter key="phpmentors_proxy_url_rewrite.proxy_url_collection.class">PHPMentors\ProxyURLRewriteBundle\ProxyUrl\ProxyUrlCollection</parameter>
    <parameter key="phpmentors_proxy_url_rewrite.proxy_url_factory.class">PHPMentors\ProxyURLRewriteBundle\ProxyUrl\ProxyUrlFactory</parameter>
    <parameter key="phpmentors_proxy_url_rewrite.proxy_url_matcher.class">PHPMentors\ProxyURLRewriteBundle\ProxyUrl\ProxyUrlMatcher</parameter>
    <parameter key="phpmentors_proxy_url_rewrite.proxy_url_rewrite_listener.class">PHPMentors\ProxyURLRewriteBundle\EventListener\ProxyUrlRewriteListener</parameter>
    <parameter key="phpmentors_proxy_url_rewrite.trailing_slash_redirection_listener.class">PHPMentors\ProxyURLRewriteBundle\EventListener\TrailingSlashRedirectionListener</parameter>
  </parameters>
  <services>
    <service id="phpmentors_proxy_url_rewrite.proxy_packages" class="%phpmentors_proxy_url_rewrite.proxy_packages.class%" public="false">
      <call method="setProxyUrlMatcher">
        <argument type="service" id="phpmentors_proxy_url_rewrite.proxy_url_matcher"/>
      </call>
    </service>
    <service id="phpmentors_proxy_url_rewrite.proxy_url" class="%phpmentors_proxy_url_rewrite.proxy_url.class%" abstract="true">
      <factory service="phpmentors_proxy_url_rewrite.proxy_url_factory" method="create"/>
    </service>
    <service id="phpmentors_proxy_url_rewrite.proxy_url_collection" class="%phpmentors_proxy_url_rewrite.proxy_url_collection.class%" public="false"/>
    <service id="phpmentors_proxy_url_rewrite.proxy_url_factory" class="%phpmentors_proxy_url_rewrite.proxy_url_factory.class%" public="false"/>
    <service id="phpmentors_proxy_url_rewrite.proxy_url_matcher" class="%phpmentors_proxy_url_rewrite.proxy_url_matcher.class%" public="false">
      <argument type="service" id="phpmentors_proxy_url_rewrite.proxy_url_collection"/>
    </service>
    <service id="phpmentors_proxy_url_rewrite.proxy_url_rewrite_listener" class="%phpmentors_proxy_url_rewrite.proxy_url_rewrite_listener.class%">
      <call method="setProxyUrlMatcher">
        <argument type="service" id="phpmentors_proxy_url_rewrite.proxy_url_matcher"/>
      </call>
      <call method="setRouter">
        <argument type="service" id="router"/>
      </call>
      <tag name="kernel.event_listener" event="kernel.request" method="onKernelRequest" priority="16"/>
    </service>
    <service id="phpmentors_proxy_url_rewrite.trailing_slash_redirection_listener" class="%phpmentors_proxy_url_rewrite.trailing_slash_redirection_listener.class%">
      <tag name="kernel.event_listener" event="kernel.controller" method="onKernelController"/>
    </service>
  </services>
</container>
