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 1
1
#!/usr/bin/env php
2
2
<?php
3
3
4
+ define ('USING_ACORN_CLI ' , true );
5
+
4
6
(static function () {
5
7
if (!is_file ($ autoloadPath = dirname (__DIR__ , 4 ) . '/vendor/autoload.php ' )) {
6
8
$ 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
37
37
if ($ this ->runningInConsole ()) {
38
38
$ this ->enableHttpsInConsole ();
39
39
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
+ }
41
45
42
46
return $ this ;
43
47
}
You can’t perform that action at this time.
0 commit comments