mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-02 08:09:19 +08:00
Symfony 6.4 - Update command definitions
This commit is contained in:
parent
f7baedbe07
commit
57865bfc95
6 changed files with 15 additions and 27 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue