Skip to content
This repository has been archived by the owner on Apr 11, 2022. It is now read-only.

InvalidArgumentException when no logger is set #13

Open
beheh opened this issue Mar 30, 2015 · 0 comments
Open

InvalidArgumentException when no logger is set #13

beheh opened this issue Mar 30, 2015 · 0 comments
Labels

Comments

@beheh
Copy link

beheh commented Mar 30, 2015

An Exception is thrown when no Logger is passed to ConsoleRunner::createHelperSet, which is the default in cli-config.php.

This is due to Command::getResque always calling Symfony\Component\Console\Command\Command::getHelper('logger'), which in turn throws an InvalidArgumentException.

Command::getResque's if doesn't make any sense in this context, it should rather be testing for $this->getHelperSet()->has('logger').

@dominics dominics added the bug label Jun 30, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants