From bb9ece2edfadbaac06ad6e9e10a81198ff827da6 Mon Sep 17 00:00:00 2001 From: mhabibi Date: Tue, 20 Sep 2022 12:33:51 +0200 Subject: [PATCH] Fix AbstractCommand --- Command/AbstractCommand.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Command/AbstractCommand.php b/Command/AbstractCommand.php index 63f97d76..53f6d90a 100644 --- a/Command/AbstractCommand.php +++ b/Command/AbstractCommand.php @@ -58,7 +58,10 @@ protected function initialize(InputInterface $input, OutputInterface $output) $this->output = $output; $this->cacheDir = $kernel->getCacheDir().'/propel'; - if ($input->hasArgument('bundle') && '@' === substr($input->getArgument('bundle'), 0, 1)) { + if ($input->hasArgument('bundle') + && !empty($input->getArgument('bundle')) + && '@' === substr($input->getArgument('bundle'), 0, 1) + ) { $this->bundle = $this ->getContainer() ->get('kernel')