Skip to content

Commit

Permalink
ContainerEntityListenerResolver: Check if class-name exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Oct 19, 2021
1 parent daa347c commit 49f28b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Orm/Mapping/ContainerEntityListenerResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public function register($object): void
public function resolve($className)
{
$className = trim($className, '\\');
assert(class_exists($className));
if (isset($this->instances[$className])) {
return $this->instances[$className];
}
Expand Down

0 comments on commit 49f28b3

Please sign in to comment.