Skip to content

Commit 795abbe

Browse files
committed
Fix container behavior
1 parent cb8c078 commit 795abbe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Container/ConfigContainer.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,14 @@ public function has(string $id): bool
7373
*/
7474
public function get(string $id)
7575
{
76-
if ($this->isResolvedByContainer($id)) {
76+
if ($id === self::class) {
7777
return $this;
7878
}
7979

80+
if ($this->isResolvedByContainer($id)) {
81+
return $this->config;
82+
}
83+
8084
if ($this->config->has($id)) {
8185
return $this->config->get($id);
8286
}

0 commit comments

Comments
 (0)