Skip to content

Commit f0393b5

Browse files
committed
fix: $options are not saved in cache
1 parent 8ac6981 commit f0393b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

system/Config/Factories.php

Lines changed: 4 additions & 0 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' => static::$instances[$component],
513515
];
@@ -520,8 +522,10 @@ public static function getComponentInstances(string $component): array
520522
*/
521523
public static function setComponentInstances(string $component, array $data): void
522524
{
525+
static::$options[$component] = $data['options'];
523526
static::$aliases[$component] = $data['aliases'];
524527
static::$instances[$component] = $data['instances'];
528+
525529
unset(static::$updated[$component]);
526530
}
527531

0 commit comments

Comments
 (0)