File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 1212namespace Symfony \Bridge \Doctrine ;
1313
1414use Doctrine \Common \Persistence \AbstractManagerRegistry as LegacyAbstractManagerRegistry ;
15+ use Doctrine \Persistence \AbstractManagerRegistry ;
1516use ProxyManager \Proxy \LazyLoadingInterface ;
1617use Symfony \Component \DependencyInjection \Container ;
1718use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
1819use Symfony \Component \DependencyInjection \ContainerInterface as SymfonyContainerInterface ;
1920
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+
2033/**
2134 * References Doctrine connections and entity/document managers.
2235 *
2336 * @author Lukas Kahwe Smith <[email protected] > 37+ *
38+ * @internal
2439 */
25- abstract class ManagerRegistry extends LegacyAbstractManagerRegistry implements ContainerAwareInterface
40+ trait ManagerRegistryTrait
2641{
2742 /**
2843 * @var Container
You can’t perform that action at this time.
0 commit comments