File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 4
4
5
5
namespace Sentry \SentryBundle \Tests \End2End \App ;
6
6
7
+ use Doctrine \Bundle \DoctrineBundle \DoctrineBundle ;
7
8
use Symfony \Component \Config \Loader \LoaderInterface ;
8
9
use Symfony \Component \DependencyInjection \ContainerBuilder ;
9
10
use Symfony \Component \HttpKernel \Bundle \BundleInterface ;
@@ -17,11 +18,17 @@ class Kernel extends SymfonyKernel
17
18
*/
18
19
public function registerBundles (): array
19
20
{
20
- return [
21
+ $ bundles = [
21
22
new \Symfony \Bundle \FrameworkBundle \FrameworkBundle (),
22
23
new \Symfony \Bundle \MonologBundle \MonologBundle (),
23
24
new \Sentry \SentryBundle \SentryBundle (),
24
25
];
26
+
27
+ if (class_exists (DoctrineBundle::class)) {
28
+ $ bundles [] = new DoctrineBundle ();
29
+ }
30
+
31
+ return $ bundles ;
25
32
}
26
33
27
34
public function registerContainerConfiguration (LoaderInterface $ loader ): void
@@ -35,6 +42,10 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
35
42
if (interface_exists (MessageBusInterface::class) && self ::VERSION_ID >= 40300 ) {
36
43
$ loader ->load (__DIR__ . '/messenger.yml ' );
37
44
}
45
+
46
+ if (class_exists (DoctrineBundle::class)) {
47
+ $ loader ->load (__DIR__ . '/doctrine.yml ' );
48
+ }
38
49
}
39
50
40
51
protected function build (ContainerBuilder $ container ): void
Original file line number Diff line number Diff line change
1
+ doctrine :
2
+ dbal :
3
+ url : ' sqlite:///%kernel.project_dir%/var/data.db'
You can’t perform that action at this time.
0 commit comments