2017 © Pedro Peláez
 

library container

image

boomdawn/container

  • Friday, April 1, 2016
  • by Boomdawn
  • Repository
  • 1 Watchers
  • 3 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

php依赖注入容器

使用方法:, (*1)

//获得容器
$app = new Boomdawn\Container();

//向容器中绑定组件
$app->bind('组件标识', '类名称|类实例');

//单例绑定
$app->bindSingle('组件标识', '类名称|类实例');

//从容器中取出对象
$app->make('标识名称',[参数]);

The Versions

01/04 2016

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by dawn

01/04 2016

0.0.1

0.0.1.0

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by dawn