Skip to content

Commit

Permalink
Merge pull request #8 from finanzcheck/fix-abstract-command
Browse files Browse the repository at this point in the history
Fix AbstractCommand
  • Loading branch information
mhabibi authored Sep 20, 2022
2 parents d9817c9 + bb9ece2 commit 8a65d93
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Command/AbstractCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 8a65d93

Please sign in to comment.