Skip to content

Commit 2f31ccc

Browse files
committed
Do not return entries in create method
1 parent 884755e commit 2f31ccc

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Container.php

+1-6
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,7 @@ public function create(string $id, array $params = [])
150150
return $this->resolve($id, $params);
151151
}
152152

153-
if (isset($this->entries[$id]) || array_key_exists($id, $this->entries)) {
154-
155-
return $this->entries[$id];
156-
}
157-
158-
throw new NotFoundException("Entry or class for < $id > could not be found");
153+
throw new NotFoundException("Factory or class for < $id > could not be found");
159154
}
160155

161156
/**

0 commit comments

Comments
 (0)