Skip to content

Commit bb11256

Browse files
committed
fix(AssetService): correct dependency registration for theme CSS
Updated the dependency registration for theme CSS in the registerTheme method to ensure it is an array, preventing potential issues with theme loading.
1 parent d7de6ef commit bb11256

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/AssetService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected function registerTheme(array $options): void
9999
// Register theme CSS
100100
$view->registerCssFile(
101101
$bundle->baseUrl . "/css/themes/prism-{$theme}{$themeExtension}",
102-
['depends' => FrontendAsset::class]
102+
['depends' => [FrontendAsset::class]]
103103
);
104104

105105
$this->loadedThemes[] = $theme;

0 commit comments

Comments
 (0)