github.com/Boomdawn/container
Source
Issues
Installs: 34
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 3
Requires
Requires (Dev)
None
Suggests
Provides
Conflicts
Replaces
MIT 908f5d4441c92ea7ddf8a7d2a66474a68a27b7f4
This package is not auto-updated.
Last update: 2025-01-18 20:46:38 UTC
使用方法:
//获得容器 $app = new Boomdawn\Container(); //向容器中绑定组件 $app->bind('组件标识', '类名称|类实例'); //单例绑定 $app->bindSingle('组件标识', '类名称|类实例'); //从容器中取出对象 $app->make('标识名称',[参数]);