File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
src/Roots/Acorn/Application/Concerns Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env php
22<?php
33
4+ define ('USING_ACORN_CLI ' , true );
5+
46(static function () {
57 if (!is_file ($ autoloadPath = dirname (__DIR__ , 4 ) . '/vendor/autoload.php ' )) {
68 $ autoloadPath = dirname (__DIR__ ) . '/vendor/autoload.php ' ;
Original file line number Diff line number Diff line change @@ -37,7 +37,11 @@ public function bootAcorn(array $bootConfiguration = []): static
3737 if ($ this ->runningInConsole ()) {
3838 $ this ->enableHttpsInConsole ();
3939
40- class_exists ('WP_CLI ' ) ? $ this ->bootWpCli () : $ this ->bootConsole ();
40+ if (class_exists ('WP_CLI ' )) {
41+ $ this ->bootWpCli ();
42+ } elseif (defined ('USING_ACORN_CLI ' ) && USING_ACORN_CLI ) {
43+ $ this ->bootConsole ();
44+ }
4145
4246 return $ this ;
4347 }
You can’t perform that action at this time.
0 commit comments