Skip to content

Commit

Permalink
refactor #16286 [Core] Add ShowAvailablePluginsCommand deprecation (m…
Browse files Browse the repository at this point in the history
…pysiak)

This PR was merged into the 1.14 branch.

Discussion
----------

| Q               | A
|-----------------|-----
| Branch?         | 1.14
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | yes
| Related tickets | n/a
| License         | MIT


Commits
-------

7ef133d [Core] Add ShowAvailablePluginsCommand deprecation
  • Loading branch information
GSadee committed May 22, 2024
2 parents 5ab993f + 7ef133d commit 0946863
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
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

0 comments on commit 0946863

Please sign in to comment.