yucadoo/singleton-container 问题修复 & 功能扩展

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

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

yucadoo/singleton-container

Composer 安装命令:

composer require yucadoo/singleton-container

包简介

PSR-11 container decorator caching resolved instances.

README 文档

README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

PSR-11 container decorator caching resolved instances. This package is compliant with PSR-1, PSR-2, PSR-4 and PSR-11. If you notice compliance oversights, please send a patch via pull request.

Install

Via Composer

$ composer require yucadoo/singleton-container

Usage

/** @var Psr\Container\ContainerInterface */
$resolvingContainer;
$singletonContainer = new YucaDoo\SingletonContainer\SingletonContainer($resolvingContainer);

// Resolves the instance using the injected container
$instance = $singletonContainer->get('Interface');
// Returns same instance
$sameInstance = $singletonContainer->get('Interface');

// Confirms that intance is cached
$singletonContainer->isCached('Interface');

// Clear cached instance
$singletonContainer->clear('Interface');
// Clear all cached instances
$singletonContainer->clearAll();

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email hrcajuka@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-04-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固