From 88c67a7718f88a4115a75752c4f54a7e2902d348 Mon Sep 17 00:00:00 2001 From: Joseph Roberts Date: Mon, 12 Jun 2023 12:02:39 -0400 Subject: [PATCH] allow kernels to be overridden --- src/Roots/Acorn/Bootloader.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Roots/Acorn/Bootloader.php b/src/Roots/Acorn/Bootloader.php index afda524e..dde8f1c7 100644 --- a/src/Roots/Acorn/Bootloader.php +++ b/src/Roots/Acorn/Bootloader.php @@ -261,12 +261,12 @@ public function getApplication(): ApplicationContract $this->app->singleton( \Illuminate\Contracts\Http\Kernel::class, - \Roots\Acorn\Kernel::class + $this->app->config->get('kernels.http', \Roots\Acorn\Kernel::class) ); $this->app->singleton( \Illuminate\Contracts\Console\Kernel::class, - \Roots\Acorn\Console\Kernel::class + $this->app->config->get('kernels.console', \Roots\Acorn\Console\Kernel::class) ); $this->app->singleton( @@ -285,6 +285,7 @@ public function getApplication(): ApplicationContract return $this->app; } + /** * Get the application basepath *