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) {请问各位大神,有没有遇到同样的问题,是怎么解决的? 最佳答案