From 9274ac01ad5734a7a07a767ad7d4d1400daecca0 Mon Sep 17 00:00:00 2001 From: Bryan Nielsen Date: Tue, 2 Jul 2024 11:39:49 -0400 Subject: [PATCH] Fix arguments passed to eecli command through artisan proxy --- CHANGELOG.md | 1 + src/Commands/EECliCommand.php | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5bb5498..be96114 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/Commands/EECliCommand.php b/src/Commands/EECliCommand.php index f510749..9873c08 100644 --- a/src/Commands/EECliCommand.php +++ b/src/Commands/EECliCommand.php @@ -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');