[CatalogPromotion] Make criteria services public in container by default

This commit is contained in:
Łukasz Chruściel 2021-10-21 19:25:41 +02:00
parent 16767ca178
commit 4cb828a467
No known key found for this signature in database
GPG key ID: 049A1D51AA3B039C
3 changed files with 2 additions and 22 deletions

View file

@ -1,6 +1,5 @@
imports:
- { resource: "../src/Sylius/Behat/Resources/config/services.xml" }
- { resource: "../tests/Resources/config/services.xml" }
# workaround needed for strange "test.client.history" problem
# see https://github.com/FriendsOfBehat/SymfonyExtension/issues/88

View file

@ -13,6 +13,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>
<defaults public="true" />
<service id="sylius.catalog_promotion.criteria.enabled" class="Sylius\Bundle\PromotionBundle\Criteria\Enabled">
<tag name="sylius.catalog_promotion.criteria" />
</service>

View file

@ -1,21 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Sylius package.
(c) Paweł Jędrzejewski
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
-->
<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="sylius.catalog_promotion.criteria.date_range" class="Sylius\Bundle\PromotionBundle\Criteria\DateRange" public="true">
<argument type="service" id="Sylius\Component\Promotion\Provider\DateTimeProviderInterface" />
<tag name="sylius.catalog_promotion.criteria" />
</service>
</services>
</container>