private function checkCommands(Console $console) { if ($console->isArgDefined("restart")) { (yield (new CommandClient((string) $console->getArg("config")))->restart()); $this->logger->info("Restarting initiated ..."); return true; } return false; }