Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DX] Make services private #17276

Merged
merged 29 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
PromotionBundle changes
  • Loading branch information
mpysiak committed Oct 22, 2024
commit 5c1ae634c27e067a7ac999773c6ad55822908ffd
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@
</imports>

<services>
<defaults public="true" />

<service id="sylius.custom_factory.promotion_coupon" class="Sylius\Component\Promotion\Factory\PromotionCouponFactory" decorates="sylius.factory.promotion_coupon" decoration-priority="256" public="false">
<service id="sylius.custom_factory.promotion_coupon" class="Sylius\Component\Promotion\Factory\PromotionCouponFactory" decorates="sylius.factory.promotion_coupon" decoration-priority="256">
<argument type="service" id="sylius.custom_factory.promotion_coupon.inner" />
</service>
<service id="Sylius\Component\Promotion\Factory\PromotionCouponFactoryInterface" alias="sylius.factory.promotion_coupon" />

<service id="sylius.factory.promotion_coupon_generator_instruction" class="Sylius\Component\Promotion\Factory\PromotionCouponGeneratorInstructionFactory" public="false" />
<service id="sylius.factory.promotion_coupon_generator_instruction" class="Sylius\Component\Promotion\Factory\PromotionCouponGeneratorInstructionFactory" />
<service id="Sylius\Component\Promotion\Factory\PromotionCouponGeneratorInstructionFactoryInterface" alias="sylius.factory.promotion_coupon_generator_instruction" />

<service id="sylius.processor.promotion" class="Sylius\Component\Promotion\Processor\PromotionProcessor">
Expand Down Expand Up @@ -62,13 +60,13 @@
</service>
<service id="Sylius\Component\Promotion\Provider\ActivePromotionsProvider" alias="sylius.provider.active_promotions" />

<service id="sylius.generator.promotion_coupon" class="Sylius\Component\Promotion\Generator\PromotionCouponGenerator">
<service id="sylius.generator.promotion_coupon" class="Sylius\Component\Promotion\Generator\PromotionCouponGenerator" public="true">
<argument type="service" id="sylius.factory.promotion_coupon" />
<argument type="service" id="sylius.repository.promotion_coupon" />
<argument type="service" id="sylius.manager.promotion_coupon" />
<argument type="service" id="sylius.generator.percentage_generation_policy" />
</service>
<service id="Sylius\Component\Promotion\Generator\PromotionCouponGeneratorInterface" alias="sylius.generator.promotion_coupon" />
<service id="Sylius\Component\Promotion\Generator\PromotionCouponGeneratorInterface" alias="sylius.generator.promotion_coupon" public="true" />

<service id="sylius.generator.percentage_generation_policy" class="Sylius\Component\Promotion\Generator\PercentageGenerationPolicy">
<argument type="service" id="sylius.repository.promotion_coupon" />
Expand All @@ -77,10 +75,11 @@
<service
id="sylius.provider.eligible_catalog_promotions"
class="Sylius\Bundle\PromotionBundle\Provider\EligibleCatalogPromotionsProvider"
public="true"
>
<argument type="service" id="sylius.repository.catalog_promotion" />
<argument type="tagged_iterator" tag="sylius.catalog_promotion.criteria" />
</service>
<service id="Sylius\Bundle\PromotionBundle\Provider\EligibleCatalogPromotionsProviderInterface" alias="sylius.provider.eligible_catalog_promotions" />
<service id="Sylius\Bundle\PromotionBundle\Provider\EligibleCatalogPromotionsProviderInterface" alias="sylius.provider.eligible_catalog_promotions" public="true" />
</services>
</container>
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
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.eligibility_checker.promotion_coupon.duration"
class="Sylius\Component\Promotion\Checker\Eligibility\PromotionCouponDurationEligibilityChecker"
public="false">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@
</parameters>

<services>
<defaults public="true" />

<service id="sylius.form.type.catalog_promotion" class="Sylius\Bundle\PromotionBundle\Form\Type\CatalogPromotionType">
<argument>%sylius.model.catalog_promotion.class%</argument>
<argument>%sylius.form.type.catalog_promotion.validation_groups%</argument>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
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.validator.promotion_subject_coupon" class="Sylius\Bundle\PromotionBundle\Validator\PromotionSubjectCouponValidator">
<argument type="service" id="sylius.eligibility_checker.promotion" />
<tag name="validator.constraint_validator" alias="sylius_promotion_subject_validator" />
Expand Down