bud/depend 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bud/depend

最新稳定版本:v3.1.1

Composer 安装命令:

composer require bud/depend

包简介

An annotation declaration that adapts to the hyperf framework to cover dependency relationships

README 文档

README

适配 hyperf 框架的注解依赖器,支持权重并且同步兼容配置文件依赖

安装

composer require bud/depend

使用方法

当配置文件中配置了相同接口的映射并且权重高于注解声明的权重时,则注解无效

<?php
declare(strict_types=1);

namespace App\Service;

use App\TestInterface;
use Bud\Depend\Annotation\Depend;

#[Depend(TestInterface::class,2)]
class TestService3 implements TestInterface
{

    public function aa(): int
    {
        return 5645645645645645;
    }
}

统计信息

  • 总下载量: 17
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-04-22