src/Valkyrja/Console/NativeKernel.php
public function run(Input $input = null, Output $output = null): void
    {
        // If no input was passed get the bootstrapped definition
        if (null === $input) {
            $input = $this->app->container()->get(Input::class);
        } else {
            $this->app->container()->singleton(Input::class, $input);
        }

        // If no output was passed get the bootstrapped definition
        if (null === $output) {
            $output = $this->app->container()->get(Output::class);
        } else {
            $this->app->container()->singleton(Output::class, $output);
        }

        // Handle the request and get the response
        $exitCode = $this->handle($input, $output);

        // Terminate the application
        $this->terminate($input, $exitCode);

        exit($exitCode);
    }
public function run(Input $input = null, Output $output = null): void
    {
        // If no input was passed get the bootstrapped definition
        if (null === $input) {
            $input = $this->app->container()->get(Input::class);
        } else {
            $this->app->container()->singleton(Input::class, $input);
        }

        // If no output was passed get the bootstrapped definition
        if (null === $output) {
            $output = $this->app->container()->get(Output::class);
        } else {
            $this->app->container()->singleton(Output::class, $output);
        }

        // Handle the request and get the response
        $exitCode = $this->handle($input, $output);

        // Terminate the application
        $this->terminate($input, $exitCode);

        exit($exitCode);
    }
Run the kernel.

@param Input  $input  The input
@param Output $output The output

@throws \Valkyrja\Http\Exceptions\HttpException

@return void