github.com/Boomdawn/container
源代码
问题
安装: 33
依赖项: 0
建议者: 0
安全: 0
星级: 3
关注者: 2
分支: 3
Requires
Requires (Dev)
None
Suggests
Provides
Conflicts
Replaces
MIT 908f5d4441c92ea7ddf8a7d2a66474a68a27b7f4
This package is not auto-updated.
Last update: 2024-09-14 19:04:04 UTC
使用方法:
//获得容器 $app = new Boomdawn\Container(); //向容器中绑定组件 $app->bind('组件标识', '类名称|类实例'); //单例绑定 $app->bindSingle('组件标识', '类名称|类实例'); //从容器中取出对象 $app->make('标识名称',[参数]);