搜索
系统检测到您的用户名不符合规范:

ThinkPHP6.0.2更新核心代码后报错

浏览:2408 发布日期:2020年04月01日 分类:ThinkPHP6专区 关键字: ThinkPHP6 更新 核心代码 报错
PS D:\......> composer require kosinix/grafika
Using version ^2.0 for kosinix/grafika
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 2 installs, 8 updates, 1 removal
- Removing phpoffice/phpexcel (1.8.2)
- Installing symfony/class-loader (v3.2.14): Loading from cache
- Updating psr/log (1.1.2 => 1.1.3): Loading from cache
- Updating league/flysystem (1.0.46 => 1.0.66): Loading from cache
- Updating topthink/think-annotation (v1.0.1 => v1.1.1): Loading from cache
- Updating markbaker/complex (1.4.7 => 1.4.8): Loading from cache
- Updating phpoffice/phpspreadsheet (1.10.1 => 1.11.0): Loading from cache
- Updating symfony/polyfill-php72 (v1.14.0 => v1.15.0): Loading from cache
- Updating symfony/polyfill-mbstring (v1.14.0 => v1.15.0): Loading from cache
- Updating symfony/var-dumper (v4.4.4 => v4.4.7): Loading from cache
- Installing kosinix/grafika (2.0.8): Loading from cache
symfony/class-loader suggests installing symfony/polyfill-apcu (For using ApcClassLoader on HHVM)
Generating autoload files
> @php think service:discover
Succeed!
> @php think vendor:publish
File D:\......\config\annotation.php exist!
File D:\......\config\captcha.php exist!
File D:\......\config\trace.php exist!
Succeed!
直接报错!#0 [-1]ReflectionException in InteractsWithRoute.php line 55
Class D:\......\app\controller\Codegenerator.php does not exist
}
}
});
}
}

protected function scanDir($dir)
{
foreach (ClassMapGenerator::createMap($dir) as $class) {
$refClass = new ReflectionClass($class);
$routeGroup = false;
$routeMiddleware = [];
$callback = null;

//类
/** @var Resource $resource */
if ($resource = $this->reader->getClassAnnotation($refClass, Resource::class)) {
//资源路由
$callback = function () use ($class, $resource) {
请问各位大神,有没有遇到同样的问题,是怎么解决的?
最佳答案
收藏
kenday
积分:685 等级:LV2
热点推荐
(追記) (追記ここまで)
最新更新

我们

合作

网站

信息

ThinkPHP 是一个免费开源的,快速、简单的面向对象的 轻量级PHP开发框架 ,创立于2006年初,遵循Apache2开源协议发布,是为了敏捷WEB应用开发和简化企业应用开发而诞生的。ThinkPHP从诞生以来一直秉承简洁实用的设计原则,在保持出色的性能和至简的代码的同时,也注重易用性。并且拥有众多的原创功能和特性,在社区团队的积极参与下,在易用性、扩展性和性能方面不断优化和改进,已经成长为国内最领先和最具影响力的WEB应用开发框架,众多的典型案例确保可以稳定用于商业以及门户级的开发。

AltStyle によって変換されたページ (->オリジナル) /