<?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="RiccardoStores\Core\Content\Store\StoreDefinition">
            <tag name="shopware.entity.definition" entity="riccardo_store"/>
        </service>

        <service id="RiccardoStores\Core\Geo\GeoLocator">
            <argument type="service" id="Doctrine\DBAL\Connection"/>
        </service>

        <service id="RiccardoStores\Core\Content\Store\StoreLocator">
            <argument type="service" id="riccardo_store.repository"/>
            <argument type="service" id="RiccardoStores\Core\Geo\GeoLocator"/>
        </service>

        <service id="RiccardoStores\Command\ImportPostalCodesCommand">
            <argument type="service" id="Doctrine\DBAL\Connection"/>
            <tag name="console.command"/>
        </service>

        <service id="RiccardoStores\Storefront\Controller\StoreController" public="true">
            <argument type="service" id="Shopware\Storefront\Page\GenericPageLoader"/>
            <argument type="service" id="RiccardoStores\Core\Content\Store\StoreLocator"/>
            <call method="setContainer"><argument type="service" id="service_container"/></call>
        </service>
    </services>
</container>
