Altax\Console\Application::all PHP Method

all() public method

public all ( $namespace = null )
    public function all($namespace = null)
    {
        $commands = parent::all($namespace);
        // Remove hidden command to prevent listing commands by ListCommand
        foreach ($commands as $name => $command) {
            if (method_exists($command, "getDefinedTask")) {
                // Consider the command Altax\Command\Command instance
                $definedTask = $command->getDefinedTask();
                if ($definedTask->isHidden()) {
                    unset($commands[$name]);
                }
            }
        }
        return $commands;
    }