Skip to content

Commit

Permalink
OP-558 - update plugin to Sylius 2 - fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusz-rup committed Jan 20, 2025
1 parent cd1f6c6 commit 35d6ac8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 30 deletions.
34 changes: 6 additions & 28 deletions config/services/twig/component.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,50 +6,28 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"
>
<services>
<service
id="bitbag.sylius_blacklist_plugin.twig.component.automatic_blacklisting_configuration.form"
class="Sylius\Bundle\UiBundle\Twig\Component\ResourceFormComponent"
>
<service id="bitbag.sylius_blacklist_plugin.twig.component.automatic_blacklisting_configuration.form" class="Sylius\Bundle\UiBundle\Twig\Component\ResourceFormComponent">
<argument type="service" id="bitbag_sylius_blacklist_plugin.repository.automatic_blacklisting_configuration" />
<argument type="service" id="form.factory" />
<argument>%bitbag_sylius_blacklist_plugin.model.automatic_blacklisting_configuration.class%</argument>
<argument>BitBag\SyliusBlacklistPlugin\Form\Type\AutomaticBlacklistingConfigurationType</argument>

<tag
name="sylius.live_component.admin"
key="sylius_admin:automatic_blacklisting_configuration:form"
template="@BitBagSyliusBlacklistPlugin/AutomaticBlacklistingConfiguration/Admin/form.html.twig"
/>
<tag name="sylius.live_component.admin" key="sylius_admin:automatic_blacklisting_configuration:form" template="@BitBagSyliusBlacklistPlugin/AutomaticBlacklistingConfiguration/Admin/form.html.twig"/>
</service>

<service
id="bitbag.sylius_blacklist_plugin.twig.component.blacklisting_rule.form"
class="Sylius\Bundle\UiBundle\Twig\Component\ResourceFormComponent"
>
<service id="bitbag.sylius_blacklist_plugin.twig.component.blacklisting_rule.form" class="Sylius\Bundle\UiBundle\Twig\Component\ResourceFormComponent">
<argument type="service" id="bitbag_sylius_blacklist_plugin.repository.blacklisting_rule" />
<argument type="service" id="form.factory" />
<argument>%bitbag_sylius_blacklist_plugin.model.blacklisting_rule.class%</argument>
<argument>BitBag\SyliusBlacklistPlugin\Form\Type\BlacklistingRuleType</argument>

<tag
name="sylius.live_component.admin"
key="sylius_admin:blacklisting_rule:form"
template="@BitBagSyliusBlacklistPlugin/BlacklistingRule/Admin/form.html.twig"
/>
<tag name="sylius.live_component.admin" key="sylius_admin:blacklisting_rule:form" template="@BitBagSyliusBlacklistPlugin/BlacklistingRule/Admin/form.html.twig"/>
</service>

<service id="bitbag.sylius_blacklist_plugin.twig.component.fraud_suspicion.form"
class="Sylius\Bundle\UiBundle\Twig\Component\ResourceFormComponent"
>
<service id="bitbag.sylius_blacklist_plugin.twig.component.fraud_suspicion.form" class="Sylius\Bundle\UiBundle\Twig\Component\ResourceFormComponent">
<argument type="service" id="bitbag_sylius_blacklist_plugin.repository.fraud_suspicion" />
<argument type="service" id="form.factory" />
<argument>%bitbag_sylius_blacklist_plugin.model.fraud_suspicion.class%</argument>
<argument>BitBag\SyliusBlacklistPlugin\Form\Type\FraudSuspicionType</argument>

<tag name="sylius.live_component.admin"
key="sylius_admin:fraud_suspicion:form"
template="@BitBagSyliusBlacklistPlugin/FraudSuspicion/Admin/form.html.twig"
/>
<tag name="sylius.live_component.admin" key="sylius_admin:fraud_suspicion:form" template="@BitBagSyliusBlacklistPlugin/FraudSuspicion/Admin/form.html.twig"/>
</service>
</services>
</container>
3 changes: 1 addition & 2 deletions config/services/twig/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"
>
<services>
<service id="bitbag.sylius_blacklist_plugin.twig.extension.labels.automatic_blacklisting_configuration"
class="BitBag\SyliusBlacklistPlugin\Twig\AutomaticBlacklistingConfigurationLabelsExtension">
<service id="bitbag.sylius_blacklist_plugin.twig.extension.labels.automatic_blacklisting_configuration" class="BitBag\SyliusBlacklistPlugin\Twig\AutomaticBlacklistingConfigurationLabelsExtension">
<argument>%bitbag.sylius_blacklist_plugin.automatic_blacklisting_rules%</argument>
<tag name="twig.extension"/>
</service>
Expand Down

0 comments on commit 35d6ac8

Please sign in to comment.