解决Hyperf
2.1 版本Inject 或 Value 注解不生效
修改confg/autoload/annotations.php
<?php
return [
'scan' => [
...
// scan 增加class_map
'class_map' => [
Hyperf\Di\Resolver\ObjectResolver::class => BASE_PATH . '/vendor/assert6/hyperf-di-heighten/classmap/ObjectResolver.php',
Hyperf\Di\Annotation\Inject::class => BASE_PATH . '/vendor/assert6/hyperf-di-heighten/classmap/Inject.php',
Hyperf\Di\Annotation\Scanner::class => BASE_PATH . '/vendor/assert6/hyperf-di-heighten/classmap/Scanner.php',
],
],
];