Skip to content

Commit 6212566

Browse files
committed
fix: bug that spark does not show error message
1 parent f277814 commit 6212566

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

system/CLI/Console.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace CodeIgniter\CLI;
1313

1414
use CodeIgniter\CodeIgniter;
15+
use Config\App;
1516
use Config\Services;
1617
use Exception;
1718

@@ -31,6 +32,10 @@ class Console
3132
*/
3233
public function run()
3334
{
35+
// Create CLIRequest
36+
$appConfig = config(App::class);
37+
Services::createRequest($appConfig, true);
38+
3439
$runner = Services::commands();
3540
$params = array_merge(CLI::getSegments(), CLI::getOptions());
3641
$params = $this->parseParamsForHelpOption($params);

0 commit comments

Comments
 (0)