Skip to content

Commit e78a438

Browse files
committed
fix: $options are not saved in cache
1 parent 9221819 commit e78a438

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

system/Config/Factories.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,12 +502,14 @@ public static function getComponentInstances(string $component): array
502502
{
503503
if (! isset(static::$aliases[$component])) {
504504
return [
505+
'options' => [],
505506
'aliases' => [],
506507
'instances' => [],
507508
];
508509
}
509510

510511
return [
512+
'options' => static::$options[$component],
511513
'aliases' => static::$aliases[$component],
512514
'instances' => self::$instances[$component],
513515
];
@@ -520,9 +522,11 @@ public static function getComponentInstances(string $component): array
520522
*/
521523
public static function setComponentInstances(string $component, array $data): void
522524
{
523-
static::$aliases[$component] = $data['aliases'];
524-
self::$instances[$component] = $data['instances'];
525-
unset(self::$updated[$component]);
525+
static::$options[$component] = $data['options'];
526+
static::$aliases[$component] = $data['aliases'];
527+
static::$instances[$component] = $data['instances'];
528+
529+
unset(static::$updated[$component]);
526530
}
527531

528532
/**

0 commit comments

Comments
 (0)