Deprecate unused classes

This commit is contained in:
TheMilek 2023-09-06 14:56:56 +02:00
parent c1ea8c793b
commit 950435373a
No known key found for this signature in database
GPG key ID: 2E44205E7374692F
3 changed files with 14 additions and 0 deletions

View file

@ -1,5 +1,9 @@
# UPGRADE FROM `v1.12.X` TO `v1.13.0`
1. Class `Sylius\Component\Core\Promotion\Updater\Rule\TotalOfItemsFromTaxonRuleUpdater` has been deprecated, as it is no more used.
1. Class `Sylius\Component\Core\Promotion\Updater\Rule\ContainsProductRuleUpdater` has been deprecated, as it is no more used.
1. Class `Sylius\Bundle\ProductBundle\Form\Type\ProductOptionChoiceType` has been deprecated.
Use `Sylius\Bundle\ProductBundle\Form\Type\ProductOptionAutocompleteType` instead.

View file

@ -22,6 +22,11 @@ final class ContainsProductRuleUpdater implements ProductAwareRuleUpdaterInterfa
{
public function __construct(private RepositoryInterface $promotionRuleRepository)
{
@trigger_deprecation(
'sylius/core',
'1.13', 'The "%s" class is deprecated since Sylius 1.13 and will be removed in 2.0.',
self::class
);
}
public function updateAfterProductDeletion(ProductInterface $product): array

View file

@ -22,6 +22,11 @@ final class TotalOfItemsFromTaxonRuleUpdater implements TaxonAwareRuleUpdaterInt
{
public function __construct(private RepositoryInterface $promotionRuleRepository)
{
@trigger_deprecation(
'sylius/core',
'1.13', 'The "%s" class is deprecated since Sylius 1.13 and will be removed in 2.0.',
self::class
);
}
public function updateAfterDeletingTaxon(TaxonInterface $taxon): array