我从endroid的github(qr-code)安装了库。当我尝试做php spark服务时,它说:
Fatal error: Uncaught TypeError: Argument 1 passed to CodeIgniter\CLI\Console::_
_construct() must be an instance of CodeIgniter\CodeIgniter, int given, called i
n D:\Kuliah\Magang\akses-log-data-center-itb\spark on line 49 and defined in D:\
Kuliah\Magang\akses-log-data-center-itb\vendor\codeigniter4\framework\system\CLI
\Console.php:29
Stack trace:
#0 D:\Kuliah\Magang\akses-log-data-center-itb\spark(49): CodeIgniter\CLI\Console
->__construct(1)
#1 {main}
thrown in D:\Kuliah\Magang\akses-log-data-center-itb\vendor\codeigniter4\frame
work\system\CLI\Console.php on line 29
我该如何解决这个问题?
2条答案
按热度按时间0qx6xfy61#
试试这个
将这个文件复制到以下位置:
然后
将spark文件复制到vendor/codeigniter 4/framework/spark(到)根文件夹中
从:https://forum.codeigniter.com/printthread.php?tid=82087
rjee0c152#
只是为了添加到Brian's answer,我发现spark文件在版本4. 2. 0中被更新了。如果你经历过这个问题,我建议你阅读它的changelog来了解其他突破性的变化。