@@ 57-64 (lines=8) @@ | ||
54 | /** |
|
55 | * {@inheritdoc} |
|
56 | */ |
|
57 | public function offsetGet($type) |
|
58 | { |
|
59 | if (!$this->offsetExists($type)) { |
|
60 | throw new ServiceNotFoundException(sprintf('The service "%s" could not be found.', $type)); |
|
61 | } |
|
62 | ||
63 | return $this->services[$type]; |
|
64 | } |
|
65 | ||
66 | /** |
|
67 | * {@inheritdoc} |
|
@@ 90-97 (lines=8) @@ | ||
87 | /** |
|
88 | * {@inheritdoc} |
|
89 | */ |
|
90 | public function offsetUnset($type) |
|
91 | { |
|
92 | if (!$this->offsetExists($type)) { |
|
93 | throw new ServiceNotFoundException(sprintf('The service "%s" could not be found.', $type)); |
|
94 | } |
|
95 | ||
96 | unset($this->services[$type]); |
|
97 | } |
|
98 | ||
99 | /** |
|
100 | * {@inheritdoc} |