File tree 1 file changed +16
-1
lines changed
src/Symfony/Bridge/Doctrine
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Bridge \Doctrine ;
13
13
14
14
use Doctrine \Common \Persistence \AbstractManagerRegistry as LegacyAbstractManagerRegistry ;
15
+ use Doctrine \Persistence \AbstractManagerRegistry ;
15
16
use ProxyManager \Proxy \LazyLoadingInterface ;
16
17
use Symfony \Component \DependencyInjection \Container ;
17
18
use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
18
19
use Symfony \Component \DependencyInjection \ContainerInterface as SymfonyContainerInterface ;
19
20
21
+ if (class_exists (AbstractManagerRegistry::class)) {
22
+ abstract class ManagerRegistry extends AbstractManagerRegistry implements ContainerAwareInterface
23
+ {
24
+ use ManagerRegistryTrait;
25
+ }
26
+ } else {
27
+ abstract class ManagerRegistry extends LegacyAbstractManagerRegistry implements ContainerAwareInterface
28
+ {
29
+ use ManagerRegistryTrait;
30
+ }
31
+ }
32
+
20
33
/**
21
34
* References Doctrine connections and entity/document managers.
22
35
*
23
36
* @author Lukas Kahwe Smith <[email protected] >
37
+ *
38
+ * @internal
24
39
*/
25
- abstract class ManagerRegistry extends LegacyAbstractManagerRegistry implements ContainerAwareInterface
40
+ trait ManagerRegistryTrait
26
41
{
27
42
/**
28
43
* @var Container
You can’t perform that action at this time.
0 commit comments