Skip to content

Commit

Permalink
fix: incorrect class name
Browse files Browse the repository at this point in the history
If we specifies FQCN, Config\Factory is not loaded since CI v4.4.0.
  • Loading branch information
kenjis committed Oct 12, 2023
1 parent b26809f commit 65b01f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Config/Factories.php
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ public static function getOptions(string $component): array
// Handle Config as a special case to prevent logic loops
? self::$configOptions
// Load values from the best Factory configuration (will include Registrars)
: config(Factory::class)->{$component} ?? [];
: config('Factory')->{$component} ?? [];

// The setOptions() reset the component. So getOptions() may reset
// the component.
Expand Down

0 comments on commit 65b01f6

Please sign in to comment.