public function getAllCommands()
    {
        // Avoid fatal errors for "Class 'oxConsoleCommand' not found" in case of old Commands present
        if (!class_exists('oxConsoleCommand'))
            class_alias(Command::class, 'oxConsoleCommand');

        $commands = $this->getCommandsFromCore();
        $commandsFromModules = $this->getCommandsFromModules();
        $commandsFromComposer = $this->getCommandsFromComposer();
        return array_merge(
            $commands,
            $commandsFromModules,
            $commandsFromComposer
        );
    }