src/Valkyrja/Console/NativeConsole.php
public function getCacheable(): array
    {
        $this->setup(true, false);

        return [
            'commands'      => base64_encode(serialize(self::$commands)),
            'paths'         => self::$paths,
            'namedCommands' => self::$namedCommands,
            'provided'      => self::$provided,
        ];
    }
public function getCacheable(): array
    {
        $this->setup(true, false);

        return [
            'commands'      => base64_encode(serialize(self::$commands)),
            'paths'         => self::$paths,
            'namedCommands' => self::$namedCommands,
            'provided'      => self::$provided,
        ];
    }
Get a cacheable representation of the commands.

@throws \ReflectionException
@throws \Valkyrja\Dispatcher\Exceptions\InvalidClosureException
@throws \Valkyrja\Dispatcher\Exceptions\InvalidDispatchCapabilityException
@throws \Valkyrja\Dispatcher\Exceptions\InvalidFunctionException
@throws \Valkyrja\Dispatcher\Exceptions\InvalidMethodException
@throws \Valkyrja\Dispatcher\Exceptions\InvalidPropertyException

@return array