Skip to content

Commit

Permalink
fix: Factories::get() cannot get defined classes
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Apr 10, 2024
1 parent 7008a2d commit ca66cb7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion system/Config/Factories.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ public static function get(string $component, string $alias): ?object
if (isset(self::$aliases[$component][$alias])) {
$class = self::$aliases[$component][$alias];

return self::$instances[$component][$class];
if (isset(self::$instances[$component][$class])) {
return self::$instances[$component][$class];
}
}

return self::__callStatic($component, [$alias]);
Expand Down

0 comments on commit ca66cb7

Please sign in to comment.