TP6.0.3出错Class think\Config does not exist

浏览:1739 发布日期:2020/08/11 分类:ThinkPHP6专区 关键字: thinkphp6.0
在通过composer安装github.com上的一个扩展包时出错,./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
> @php think service:discover
PHP Fatal error:  Uncaught ReflectionException: Class think\Config does not exist in E:\wwwroot\oneshop\vendor\topthink\framework\src\think\Container.php:374
Stack trace:
#0 E:\wwwroot\oneshop\vendor\topthink\framework\src\think\Container.php(374): ReflectionClass->__construct('think\\Config')
#1 E:\wwwroot\oneshop\vendor\topthink\framework\src\think\Container.php(250): think\Container->invokeClass('think\\Config', Array)
#2 E:\wwwroot\oneshop\vendor\topthink\framework\src\think\Container.php(130): think\Container->make('think\\Config')
#3 E:\wwwroot\oneshop\vendor\topthink\framework\src\think\Container.php(507): think\Container->get('config')
#4 E:\wwwroot\oneshop\vendor\topthink\framework\src\think\App.php(511): think\Container->__get('config')
#5 E:\wwwroot\oneshop\vendor\topthink\framework\src\think\App.php(420): think\App->load()
#6 E:\wwwroot\oneshop\vendor\topthink\framework\src\think\Console.php(95): think\App->initialize()
#7 [internal function]: think\Console->__construct(Object(think\App))
#8 E:\wwwroot\oneshop\vend in E:\wwwroot\oneshop\vendor\topthink\framework\src\think\Container.php on line 376
Script @php think service:discover handling the post-autoload-dump event returned with error code 255

Installation failed, reverting ./composer.json to its original content.
检查过扩展包中use了think\facade\Config;为什么还出现找不到这个类的情况呢,请求解答。
最佳答案
评论( 相关
后面还有条评论,点击查看>>