Skip to content

Commit

Permalink
🐛 acorn stop breaking wp-cli pls (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
QWp6t authored Feb 3, 2023
1 parent f482856 commit 6dfc650
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 @@ -162,9 +162,10 @@ protected function bootConsole(ApplicationContract $app)
*/
protected function bootWpCli(ApplicationContract $app)
{
\WP_CLI::add_command('acorn', function ($args, $assoc_args) use ($app) {
$kernel = $app->make(\Illuminate\Contracts\Console\Kernel::class);
$kernel = $app->make(\Illuminate\Contracts\Console\Kernel::class);
$kernel->bootstrap();

\WP_CLI::add_command('acorn', function ($args, $assoc_args) use ($kernel) {
$kernel->commands();

$command = implode(' ', $args);
Expand Down

0 comments on commit 6dfc650

Please sign in to comment.