Skip to content

Commit

Permalink
Fix arguments passed to eecli command through artisan proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
bryannielsen committed Jul 2, 2024
1 parent 7989027 commit 9274ac0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Fixed

- Bug where ExpressionEngine CLI command proxy was not recognizing optional arguments
- Bug where ExpressionEngine CLI command proxy would fail to handle interactive input

## [1.3.1] - 2024-04-24

Expand Down
1 change: 1 addition & 0 deletions src/Commands/EECliCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function __construct()
}

$core = (new \Expressionengine\Coilpack\Bootstrap\LoadExpressionEngine)->cli()->bootstrap(app());
$GLOBALS['argv'] = array_slice($_SERVER['argv'], 1);
$this->cli = $core->runGlobal();

$this->setupCommand($_SERVER['argv'][2] ?? 'list');
Expand Down

0 comments on commit 9274ac0

Please sign in to comment.