Symfony 6.4 - Update command definitions

This commit is contained in:
Clemente Raposo 2024-02-14 09:02:13 +00:00
parent f7baedbe07
commit 57865bfc95
6 changed files with 15 additions and 27 deletions

View file

@ -27,15 +27,15 @@
namespace App\Install\Command;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Filesystem\Filesystem;
#[AsCommand(name: 'scrm:copy-legacy-assets')]
class CopyLegacyAssets extends Command
{
protected static $defaultName = 'scrm:copy-legacy-assets';
/**
* @var string
*/
@ -61,8 +61,9 @@ class CopyLegacyAssets extends Command
string $name = null,
string $projectDir = '',
string $legacyDir = '',
array $copyLegacyAssetPaths = []
) {
array $copyLegacyAssetPaths = []
)
{
parent::__construct($name);
$this->projectDir = $projectDir;
$this->copyLegacyAssetPaths = $copyLegacyAssetPaths;

View file

@ -29,14 +29,14 @@ namespace App\Install\Command;
use App\Engine\Service\Extensions\ExtensionAssetCopy;
use App\Engine\Service\Extensions\ExtensionAssetCopyInterface;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
#[AsCommand(name: 'scrm:extension-asset-install')]
class InstallExtensionAssets extends Command
{
protected static $defaultName = 'scrm:extension-asset-install';
/**
* @var ExtensionAssetCopy
*/

View file

@ -30,6 +30,7 @@ namespace App\Install\Command;
use App\Engine\Service\ProcessSteps\ProcessStepExecutorInterface;
use App\Install\LegacyHandler\InstallHandler;
use App\Install\Service\Installation\InstallStepHandler;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Question\ChoiceQuestion;
use Symfony\Component\Console\Question\Question;
@ -38,14 +39,9 @@ use Symfony\Component\Console\Question\Question;
* Class LegacyInstallCommand
* @package App\Command
*/
#[AsCommand(name: 'suitecrm:app:install')]
class LegacyInstallCommand extends BaseStepExecutorCommand
{
/**
* @var string
*/
protected static $defaultName = 'suitecrm:app:install';
/**
* @var InstallHandler
*/

View file

@ -29,18 +29,15 @@ namespace App\Install\Command;
use App\Engine\Service\ProcessSteps\ProcessStepExecutorInterface;
use App\Install\Service\LegacyMigration\LegacyMigrationHandlerInterface;
use Symfony\Component\Console\Attribute\AsCommand;
/**
* Class SetupLegacyMigrationCommand
* @package App\Install\Command
*/
#[AsCommand(name: 'suitecrm:app:setup-legacy-migration')]
class SetupLegacyMigrationCommand extends BaseStepExecutorCommand
{
/**
* @var string
*/
protected static $defaultName = 'suitecrm:app:setup-legacy-migration';
/**
* @var LegacyMigrationHandlerInterface
*/

View file

@ -29,6 +29,7 @@ namespace App\Install\Command;
use App\Engine\Service\ProcessSteps\ProcessStepExecutorInterface;
use App\Install\Service\Upgrade\UpgradeHandlerInterface;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
@ -38,13 +39,9 @@ use Symfony\Component\Console\Question\Question;
* Class UpgradeCommand
* @package App\Install\Command
*/
#[AsCommand(name: 'suitecrm:app:upgrade')]
class UpgradeCommand extends BaseStepExecutorCommand
{
/**
* @var string
*/
protected static $defaultName = 'suitecrm:app:upgrade';
/**
* @inheritdoc
*/

View file

@ -29,6 +29,7 @@ namespace App\Install\Command;
use App\Engine\Service\ProcessSteps\ProcessStepExecutorInterface;
use App\Install\Service\Upgrade\UpgradeFinalizeHandlerInterface;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
@ -39,13 +40,9 @@ use Symfony\Component\Console\Question\Question;
* Class UpgradeFinalizeCommand
* @package App\Install\Command
*/
#[AsCommand(name: 'suitecrm:app:upgrade-finalize')]
class UpgradeFinalizeCommand extends BaseStepExecutorCommand
{
/**
* @var string
*/
protected static $defaultName = 'suitecrm:app:upgrade-finalize';
/**
* @inheritdoc
*/