承接 catalyst/servant 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

catalyst/servant

Composer 安装命令:

composer require catalyst/servant

包简介

Catalyst Servant Dependency Inhibitor Library

README 文档

README

Catalyst Servant - Dependency Inhibitor Library

What is Servant ?

Servant is a dependency inhibitor based on a chain of responsibility. Servant provides the ability to resolve a given dependency based on a class name or a ReflectionParameter-Instance.

Usage

use Catalyst\Servant\{
    RepositoryServant,
    BlindServant
};

$servant = new RepositoryServant();
$servant->chain(new BlindServant());
$servant->ensure(DateTimeInterface::class, function() {
    return date_create();
});

$dateTime = $servant->resolve(DateTimeInterface::class);

Boxed Servants

This package serves the following ServantInterface-Implementations:

  • RepositoryServant - A repository based servant that allows to assign aliases and interfaces to concretes.
  • BlindServant - A blind servant that allows the instancing of objects out of the blue.
  • NullServant - A null servant that returns null and acts as an end point to guarantee a null-result when no dependency resolver was successful.

License and Maintainer(s)

This package is licensed under the MIT license. This package is actively maintained by:

  • Matthias Kaschubowski

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-01-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固