src/Core/CommandCollector.php
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
        );
    }
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
        );
    }
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 ) ; }
Get all available command objects.

Command objects are collected from the following sources:
1) All core commands from `OxidProfessionalServices\OxidConsole\Command` namespace;
2) All commands from modules matching the following criteria:
a) Are placed under the directory `Command` within a module;
b) PHP Class file ends with `Command` as suffix of the class;
c) PHP Class extends `Symfony\Component\Console\Command\Command`.

@return Command[]
Get all available command objects .