public function __construct( private readonly StoreClient
$storeClient,
private readonly EntityRepository
$pluginRepo,
private readonly PluginManagementService
$pluginManagementService,
private readonly PluginLifecycleService
$pluginLifecycleService,
private readonly EntityRepository
$userRepository,
string
$pluginDir,
string
$projectDir,
) { parent::
__construct();
$this->relativePluginDir =
(new Filesystem())->
makePathRelative($pluginDir,
$projectDir);
} protected function configure(): void
{ $this->
addOption('pluginName', 'p', InputOption::VALUE_REQUIRED, 'Name of plugin'
) ->
addOption('language', 'l', InputOption::VALUE_OPTIONAL, 'Language'
) ->
addOption('user', 'u', InputOption::VALUE_OPTIONAL, 'User'
) ;
} protected function execute(InputInterface
$input, OutputInterface
$output): int
{