@@ 83-90 (lines=8) @@ | ||
80 | return isset($this->dicValues[$key]); |
|
81 | } |
|
82 | ||
83 | public function hasInstance(string $key): bool |
|
84 | { |
|
85 | if (isset($this->aliases[$key])) { |
|
86 | $key = $this->aliases[$key]; |
|
87 | } |
|
88 | ||
89 | return isset($this->dicObjects[$key]); |
|
90 | } |
|
91 | ||
92 | /** |
|
93 | * @inheritdoc |
|
@@ 163-170 (lines=8) @@ | ||
160 | * |
|
161 | * @param string $key |
|
162 | */ |
|
163 | public function destroyInstance(string $key): void |
|
164 | { |
|
165 | if (isset($this->aliases[$key])) { |
|
166 | $key = $this->aliases[$key]; |
|
167 | } |
|
168 | ||
169 | unset($this->dicObjects[$key]); |
|
170 | } |
|
171 | ||
172 | public function destroyAllInstances(): void |
|
173 | { |