From 30af4e3e3d1793480663be18ffd419cbef7a8026 Mon Sep 17 00:00:00 2001 From: juniwalk Date: Wed, 24 Apr 2024 19:04:13 +0200 Subject: [PATCH] Fix directLink handover method --- src/DI/Bundle.php | 2 +- src/DI/TessaExtension.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DI/Bundle.php b/src/DI/Bundle.php index 80f883b..4b2cffa 100644 --- a/src/DI/Bundle.php +++ b/src/DI/Bundle.php @@ -11,7 +11,7 @@ class Bundle { public ?string $cookieConsent = null; public ?string $extend = null; - public bool $directLink = false; + public ?bool $directLink = null; public bool $isModule = false; public bool $defer = false; public bool $async = false; diff --git a/src/DI/TessaExtension.php b/src/DI/TessaExtension.php index 2657440..07c4a4f 100644 --- a/src/DI/TessaExtension.php +++ b/src/DI/TessaExtension.php @@ -63,7 +63,7 @@ public function loadConfiguration(): void foreach ($config->bundles as $bundleName => $bundle) { $stmt = $builder->addDefinition($this->prefix('bundle.'.$bundleName)) ->setFactory(AssetBundle::class, [$bundleName]) - ->addSetup('setDirectLink', [$bundle->directLink || $config->directLink]) + ->addSetup('setDirectLink', [$bundle->directLink ?? $config->directLink]) ->addSetup('setExtendBundle', [$bundle->extend]); if ($bundle->isModule) {