make call to showUsage conditional on whether request is an API request
This commit is contained in:
parent
cde61e122b
commit
2c3c09cb9c
|
@ -32,7 +32,9 @@ class CommandController extends ObjectController
|
|||
*/
|
||||
public function indexAction()
|
||||
{
|
||||
if (! $this->getRequest()->isApiRequest()) {
|
||||
$this->showUsage();
|
||||
}
|
||||
parent::indexAction();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue