Skip to content

Commit

Permalink
Fix directLink handover method
Browse files Browse the repository at this point in the history
  • Loading branch information
juniwalk committed Apr 24, 2024
1 parent a2e4a9e commit 30af4e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DI/Bundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/DI/TessaExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 30af4e3

Please sign in to comment.