container:Semperton容器组件

时间:2021-04-22 18:00:04
【文件属性】:
文件名称:container:Semperton容器组件
文件大小:18KB
文件格式:ZIP
更新时间:2021-04-22 18:00:04
PHP Semperton集装箱 轻巧的PSR-11容器实现基于反射的自动装配。 // 安装 只需使用Composer: composer require semperton/container 容器需要PHP 7.1+ 界面 容器以四种公共方法运送: with (string $ id , $ value ): Container // add a container entry get (string $ id ) // get entry (PSR-11) has(string $ id ): bool // has entry (PSR-11) entries(): array // list all container entries 用法 只要不需要任何特殊配置(自动装配),就可以自动解析类。 use Semperton \ Container \ Container ; cla
【文件预览】:
container-main
----composer.json(435B)
----composer.lock(127KB)
----LICENSE(1KB)
----src()
--------Container.php(4KB)
--------Exception()

网友评论