1 | <?php |
||
18 | class Container extends PimpleContainer implements ContainerInterface |
||
19 | { |
||
20 | /** |
||
21 | * 从容器中获取实例对象或者其它资源 |
||
22 | * |
||
23 | * @param string $id |
||
24 | * @return mixed |
||
25 | */ |
||
26 | public function get($id) |
||
40 | |||
41 | /** |
||
42 | * 检查容器是否存储该资源,如果存在返回true,否则返回false |
||
43 | * |
||
44 | * @param string $id Identifier of the entry to look for. |
||
45 | * |
||
46 | * @return boolean |
||
47 | */ |
||
48 | public function has($id) |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public function merge(array $values) |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | public function add(array $values) |
||
72 | } |