Skip to content

assert6/hyperf-di-heighten

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hyperf-Di-Heighten

作用

解决Hyperf2.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',
        ],
    ],
];

About

Hyperf/Di 功能加强

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages