File tree 3 files changed +3
-10
lines changed
3 files changed +3
-10
lines changed Original file line number Diff line number Diff line change 27
27
"symfony/phpunit-bridge" : " ^7.0.3"
28
28
},
29
29
"conflict" : {
30
+ "doctrine/phpcr-odm" : " <2.0" ,
30
31
"doctrine/phpcr-bundle" : " <3.0" ,
31
- "symfony/framework-bundle" : " <5.4.6 "
32
+ "symfony/framework-bundle" : " <6.4 "
32
33
},
33
34
"autoload" : {
34
35
"psr-4" : {
Original file line number Diff line number Diff line change 40
40
],
41
41
];
42
42
43
-
44
43
if (class_exists (\Symfony \Component \Security \Core \Security::class)) {
45
44
// Symfony 6 but not 7
46
45
$ config ['enable_authenticator_manager ' ] = true ;
Original file line number Diff line number Diff line change @@ -143,14 +143,7 @@ protected function getDbManager(string $type)
143
143
));
144
144
}
145
145
146
- $ refl = new \ReflectionClass ($ className );
147
- if (1 === $ refl ->getConstructor ()->getNumberOfParameters ()) {
148
- // phpcr-bundle < 3
149
- $ dbManager = new $ className (self ::getContainer ());
150
- } else {
151
- // phpcr-bundle >= 3
152
- $ dbManager = new $ className (self ::getContainer ()->get ('doctrine_phpcr ' ), self ::getContainer ()->get ('doctrine_phpcr.initializer_manager ' ));
153
- }
146
+ $ dbManager = new $ className (self ::getContainer ());
154
147
155
148
$ this ->dbManagers [$ type ] = $ dbManager ;
156
149
You can’t perform that action at this time.
0 commit comments