Skip to content

Commit

Permalink
allow kernels to be overridden
Browse files Browse the repository at this point in the history
  • Loading branch information
digital-joe-co committed Jun 12, 2023
1 parent 79eb9b0 commit 88c67a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Roots/Acorn/Bootloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -285,6 +285,7 @@ public function getApplication(): ApplicationContract
return $this->app;
}


/**
* Get the application basepath
*
Expand Down

0 comments on commit 88c67a7

Please sign in to comment.