Skip to content

Commit 340a930

Browse files
committed
fix: remove logic for preferApp for no namespaced Config classname
preferApp should work only for no namespaced (Config) classname.
1 parent 244c5fb commit 340a930

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

system/Config/Factories.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -146,16 +146,6 @@ public static function __callStatic(string $component, array $arguments)
146146
return $instance;
147147
}
148148

149-
// Check for an existing Config definition with basename.
150-
if (self::isConfig($options['component'])) {
151-
$basename = self::getBasename($alias);
152-
153-
$instance = self::getDefinedInstance($options, $basename, $arguments);
154-
if ($instance !== null) {
155-
return $instance;
156-
}
157-
}
158-
159149
// Try to locate the class
160150
if (! $class = self::locateClass($options, $alias)) {
161151
return null;

0 commit comments

Comments
 (0)