src/Valkyrja/Console/NativeConsole.php
protected function setupAnnotations(): void
    {
        /** @var CommandAnnotations $commandAnnotations */
        $commandAnnotations = $this->app->container()->getSingleton(
            CommandAnnotations::class
        );

        // Get all the annotated commands from the list of handlers
        $commands = $commandAnnotations->getCommands(
            ...$this->app->config()['console']['handlers']
        );

        // Iterate through the commands
        foreach ($commands as $command) {
            // Set the service
            $this->addCommand($command);
        }
    }
protected function setupAnnotations(): void
    {
        /** @var CommandAnnotations $commandAnnotations */
        $commandAnnotations = $this->app->container()->getSingleton(
            CommandAnnotations::class
        );

        // Get all the annotated commands from the list of handlers
        $commands = $commandAnnotations->getCommands(
            ...$this->app->config()['console']['handlers']
        );

        // Iterate through the commands
        foreach ($commands as $command) {
            // Set the service
            $this->addCommand($command);
        }
    }
Setup annotations.

@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 void