Skip to content

Commit

Permalink
Upgrade the Spiral example to latest version (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk authored Sep 13, 2024
1 parent bf3292f commit e53233f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Bootloader/SearchBootloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ public function boot(Container $container, SearchConfig $config): void
$schemaId = 'schranz_search.schema.' . $name;

/** @var string $adapterDsn */
$adapterDsn = $engineConfig['adapter'];
$adapterDsn = $engineConfig['adapter'] ?? throw new \RuntimeException(\sprintf(
'No adapter DSN configured for engine "%s".',
$name,
));
$dirs = $engineSchemaDirs[$name] ?? [];

$container->bindSingleton(
Expand Down

0 comments on commit e53233f

Please sign in to comment.