solve PHP Notice:  Undefined variable: command at CommandBase::getCommand()