Skip to content

Commit

Permalink
readme调整
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Apr 19, 2019
1 parent 802451b commit cbd1194
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
PHP Container & Facade Manager
PHP Container & Facade Manager( Support PSR-11)
===============

composer require topthink/think-container

## 特性

* 支持PSR-11规范
* 支持依赖注入
* 支持Facade门面
* 支持容器对象绑定
* 支持闭包绑定
* 支持接口绑定

## Container
~~~
// 获取容器实例
Expand All @@ -21,7 +30,7 @@ $container->delete('cache');
$container->invoke($callable, $vars);
// 执行某个类的实例化 支持依赖注入
$container->invokeClass($class, $vars);
// 静态方法获取容器对象实例
// 静态方法获取容器对象实例 不存在则自动实例化
\think\Container::pull('cache');
~~~

Expand Down

0 comments on commit cbd1194

Please sign in to comment.