Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
Update src/DependencyInjection/SonataDashboardExtension.php
Browse files Browse the repository at this point in the history
Co-authored-by: Javier Spagnoletti <phansys@gmail.com>
  • Loading branch information
jordisala1991 and phansys committed Jul 25, 2020
1 parent 5372497 commit ae35d32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DependencyInjection/SonataDashboardExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ public function load(array $configs, ContainerBuilder $container): void
$loader->load('orm.xml');
$loader->load('twig.xml');

if (isset($bundles['SonataDoctrineBundle'])) {
$this->registerSonataDoctrineMapping($config);
} else {
if (!isset($bundles['SonataDoctrineBundle'])) {
throw new \RuntimeException('You must register SonataDoctrineBundle to use SonataDashboardBundle.');
}

$this->registerSonataDoctrineMapping($config);

$this->registerParameters($container, $config);
}
Expand Down

0 comments on commit ae35d32

Please sign in to comment.