diff --git a/UPGRADE-1.14.md b/UPGRADE-1.14.md index eaec22dd082..4570f1363b8 100644 --- a/UPGRADE-1.14.md +++ b/UPGRADE-1.14.md @@ -6,3 +6,5 @@ Starting with this version, form types will be extended using the parent form instead of through form extensions, like it's done in the `Sylius\Bundle\AdminBundle\Form\Type\CatalogPromotionScopeType` and `Sylius\Bundle\AdminBundle\Form\Type\CatalogPromotionActionType` classes. 1. The class `Sylius\Bundle\CoreBundle\Twig\StateMachineExtension` has been deprecated and will be removed in Sylius 2.0. Use `Sylius\Abstraction\StateMachine\Twig\StateMachineExtension` instead. +1. The class `Sylius\Bundle\CoreBundle\Console\Command\ShowAvailablePluginsCommand` has been deprecated and will be removed in Sylius 2.0. +1. The class `Sylius\Bundle\CoreBundle\Console\Command\Model\PluginInfo` has been deprecated and will be removed in Sylius 2.0. diff --git a/src/Sylius/Bundle/CoreBundle/Console/Command/Model/PluginInfo.php b/src/Sylius/Bundle/CoreBundle/Console/Command/Model/PluginInfo.php index 52135516637..340acc54e73 100644 --- a/src/Sylius/Bundle/CoreBundle/Console/Command/Model/PluginInfo.php +++ b/src/Sylius/Bundle/CoreBundle/Console/Command/Model/PluginInfo.php @@ -13,6 +13,13 @@ namespace Sylius\Bundle\CoreBundle\Console\Command\Model; +trigger_deprecation( + 'sylius/core-bundle', + '1.14', + 'The "%s" class is deprecated and will be removed in Sylius 2.0.', + PluginInfo::class, +); + final class PluginInfo { public function __construct(private string $name, private string $description, private string $url) diff --git a/src/Sylius/Bundle/CoreBundle/Console/Command/ShowAvailablePluginsCommand.php b/src/Sylius/Bundle/CoreBundle/Console/Command/ShowAvailablePluginsCommand.php index d1841cc466a..3f91fc6af2f 100644 --- a/src/Sylius/Bundle/CoreBundle/Console/Command/ShowAvailablePluginsCommand.php +++ b/src/Sylius/Bundle/CoreBundle/Console/Command/ShowAvailablePluginsCommand.php @@ -21,6 +21,13 @@ use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; +trigger_deprecation( + 'sylius/core-bundle', + '1.14', + 'The "%s" class is deprecated and will be removed in Sylius 2.0.', + ShowAvailablePluginsCommand::class, +); + final class ShowAvailablePluginsCommand extends Command { protected static $defaultName = 'sylius:show-available-plugins';