1 | <?php |
||
9 | class Container extends \Pimple\Container |
||
10 | { |
||
11 | /** @var \Pimple\Container */ |
||
12 | protected $pimpleContainer; |
||
13 | |||
14 | /** @var string[] */ |
||
15 | protected $loadedNamespaces = array(); |
||
16 | |||
17 | /** @var ServiceProviderInterface[] */ |
||
18 | protected $namespaceProviders = array(); |
||
19 | |||
20 | 16 | public function __construct(array $values = array()) |
|
24 | |||
25 | 10 | public function offsetSet($id, $value) |
|
29 | |||
30 | 8 | public function offsetGet($id) |
|
36 | |||
37 | 3 | public function offsetExists($id) |
|
43 | |||
44 | 1 | public function offsetUnset($id) |
|
45 | { |
||
46 | 1 | $this->pimpleContainer->offsetUnset($id); |
|
47 | 1 | } |
|
48 | |||
49 | 1 | public function factory($callable) |
|
50 | { |
||
51 | 1 | return $this->pimpleContainer->factory($callable); |
|
52 | } |
||
53 | |||
54 | 1 | public function protect($callable) |
|
55 | { |
||
56 | 1 | return $this->pimpleContainer->protect($callable); |
|
57 | } |
||
58 | |||
59 | 1 | public function raw($id) |
|
65 | |||
66 | 1 | public function extend($id, $callable) |
|
74 | |||
75 | 1 | public function keys() |
|
76 | { |
||
77 | 1 | return $this->pimpleContainer->keys(); |
|
79 | |||
80 | 1 | public function register(ServiceProviderInterface $provider, array $values = array()) |
|
84 | |||
85 | 10 | public function registerServiceProviderProvider(ServiceProviderProviderInterface $providerProvider) |
|
93 | |||
94 | 7 | protected function loadNamespace($name) |
|
107 | |||
108 | 12 | protected function ensureNamespacesLoaded($id) |
|
116 | |||
117 | 10 | protected function checkNamespaceProvider($nameSpace, $serviceProvider) |
|
131 | } |
||
132 |