mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
Deprecate unused classes
This commit is contained in:
parent
c1ea8c793b
commit
950435373a
3 changed files with 14 additions and 0 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue