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

[Core] Add ShowAvailablePluginsCommand deprecation #16286

Merged
merged 1 commit into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions UPGRADE-1.14.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Loading