diff --git a/system/CLI/CommandRunner.php b/system/CLI/CommandRunner.php index 466ef33ce0..507db346a9 100644 --- a/system/CLI/CommandRunner.php +++ b/system/CLI/CommandRunner.php @@ -40,6 +40,7 @@ namespace CodeIgniter\CLI; use CodeIgniter\Controller; +use Config\Services; /** * Command runner @@ -61,7 +62,7 @@ class CommandRunner extends Controller */ public function __construct() { - $this->commands = service('commands'); + $this->commands = Services::commands(); } /**