boomdawn/container

0.0.1 2016-04-01 03:40 UTC

This package is not auto-updated.

Last update: 2025-01-18 20:46:38 UTC


README

使用方法:

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

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

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

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