mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
minor #17110 [ChannelBundle] Unification of service names (Wojdylak)
This PR was merged into the 2.0 branch. Discussion ---------- | Q | A |-----------------|----- | Branch? | 2.0 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | #17098 | License | MIT Commits ------- [ChannelBundle] Unification of service names
This commit is contained in:
commit
fc1b22b35c
4 changed files with 17 additions and 9 deletions
|
|
@ -37,7 +37,7 @@ final class SyliusChannelExtension extends AbstractResourceExtension
|
|||
if ($config['debug'] ?? $container->getParameter('kernel.debug')) {
|
||||
$loader->load('services/integrations/debug.xml');
|
||||
|
||||
$container->getDefinition('sylius.channel_collector')->replaceArgument(2, true);
|
||||
$container->getDefinition('sylius.collector.channel')->replaceArgument(2, true);
|
||||
}
|
||||
|
||||
$container->getDefinition('sylius.repository.channel')->setLazy(true);
|
||||
|
|
|
|||
|
|
@ -11,9 +11,10 @@
|
|||
|
||||
-->
|
||||
|
||||
<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"
|
||||
<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="sylius.channel.validation_groups" type="collection">
|
||||
|
|
@ -66,13 +67,12 @@
|
|||
<tag name="sylius.context.channel.request_based.resolver" />
|
||||
</service>
|
||||
|
||||
<service id="sylius.channel_collector" class="Sylius\Bundle\ChannelBundle\Collector\ChannelCollector" public="false">
|
||||
<service id="sylius.collector.channel" class="Sylius\Bundle\ChannelBundle\Collector\ChannelCollector" public="false">
|
||||
<argument type="service" id="sylius.repository.channel" />
|
||||
<argument type="service" id="sylius.context.channel" />
|
||||
<argument>false</argument>
|
||||
<tag name="data_collector" template="@SyliusChannel/Collector/channel.html.twig" id="sylius.channel_collector" />
|
||||
<tag name="data_collector" template="@SyliusChannel/Collector/channel.html.twig" id="sylius.collector.channel" />
|
||||
</service>
|
||||
<service id="sylius.collector.channel" alias="sylius.channel_collector" />
|
||||
|
||||
<service id="sylius.checker.channel_deletion" class="Sylius\Component\Channel\Checker\ChannelDeletionChecker">
|
||||
<argument type="service" id="sylius.repository.channel" />
|
||||
|
|
|
|||
|
|
@ -11,7 +11,11 @@
|
|||
|
||||
-->
|
||||
|
||||
<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">
|
||||
<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" />
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,11 @@
|
|||
|
||||
-->
|
||||
|
||||
<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">
|
||||
<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="sylius.repository.channel.class">Sylius\Bundle\ChannelBundle\Doctrine\ORM\ChannelRepository</parameter>
|
||||
</parameters>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue