mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
[CatalogPromotion] Make criteria services public in container by default
This commit is contained in:
parent
16767ca178
commit
4cb828a467
3 changed files with 2 additions and 22 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
Loading…
Add table
Reference in a new issue