From 81732ca25b1811f10ca37777f4853cb849e4cedf Mon Sep 17 00:00:00 2001 From: neoan Date: Thu, 27 Oct 2022 14:53:16 -0400 Subject: [PATCH] remove namespace-argument bug --- src/Cli/MigrateAllCommand.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Cli/MigrateAllCommand.php b/src/Cli/MigrateAllCommand.php index d9640cb..1e2568b 100644 --- a/src/Cli/MigrateAllCommand.php +++ b/src/Cli/MigrateAllCommand.php @@ -18,11 +18,11 @@ use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; -#[AsCommand(name: 'migrate:models', description: 'Syncs all models within a namespace with the database')] +#[AsCommand(name: 'migrate:models', description: 'Syncs all models with the database')] class MigrateAllCommand extends Command { protected static $defaultName = 'migrate:models'; - protected static $defaultDescription = 'Syncs all models within a namespace with the database'; + protected static $defaultDescription = 'Syncs all models with the database'; private NeoanApp $app; private InputInterface $input; @@ -144,7 +144,6 @@ private function checkAndMigrate(string $namespace) protected function execute(InputInterface $input, OutputInterface $output): int { - $namespaceName = $input->getArgument('namespace'); $this->input = $input; $this->output = $output; $composerParser = new ComposerParser($this->app);