Aerys\WatcherProcess::checkCommands PHP Method

checkCommands() private method

private checkCommands ( Console $console )
$console Console
    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;
    }