File tree Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 16
16
use Doctrine \Common \DataFixtures \Loader ;
17
17
use Doctrine \Common \DataFixtures \ProxyReferenceRepository ;
18
18
use Doctrine \Common \DataFixtures \Purger \ORMPurger ;
19
- use Doctrine \Common \Persistence \ManagerRegistry ;
20
- use Doctrine \Common \Persistence \ObjectManager ;
19
+ use Doctrine \Common \Persistence \ManagerRegistry as LegacyManagerRegistry ;
20
+ use Doctrine \Common \Persistence \ObjectManager as LegacyObjectManager ;
21
+ use Doctrine \Persistence \ManagerRegistry ;
22
+ use Doctrine \Persistence \ObjectManager ;
21
23
use Symfony \Bridge \Doctrine \DataFixtures \ContainerAwareLoader ;
22
24
use Symfony \Component \DependencyInjection \ContainerInterface ;
23
25
@@ -45,20 +47,23 @@ class ORM
45
47
*/
46
48
protected $ om ;
47
49
48
- /**
49
- * Constructor.
50
- */
51
50
public function __construct (ContainerInterface $ container )
52
51
{
53
52
$ this ->container = $ container ;
54
53
}
55
54
56
- public function getRegistry (): ManagerRegistry
55
+ /**
56
+ * @return ManagerRegistry|LegacyManagerRegistry
57
+ */
58
+ public function getRegistry ()
57
59
{
58
60
return $ this ->container ->get ('doctrine ' );
59
61
}
60
62
61
- public function getOm ($ managerName = null ): ObjectManager
63
+ /**
64
+ * @return ObjectManager|LegacyObjectManager
65
+ */
66
+ public function getOm ($ managerName = null )
62
67
{
63
68
if (!$ this ->om ) {
64
69
$ this ->om = $ this ->getRegistry ()->getManager ($ managerName );
Original file line number Diff line number Diff line change 16
16
use Doctrine \Common \DataFixtures \Loader ;
17
17
use Doctrine \Common \DataFixtures \ProxyReferenceRepository ;
18
18
use Doctrine \Common \DataFixtures \Purger \PHPCRPurger ;
19
- use Doctrine \Common \Persistence \ManagerRegistry ;
19
+ use Doctrine \Common \Persistence \ManagerRegistry as LegacyManagerRegistry ;
20
20
use Doctrine \ODM \PHPCR \DocumentManager ;
21
+ use Doctrine \Persistence \ManagerRegistry ;
21
22
use Symfony \Bridge \Doctrine \DataFixtures \ContainerAwareLoader ;
22
23
use Symfony \Component \DependencyInjection \ContainerInterface ;
23
24
@@ -40,7 +41,10 @@ public function __construct(ContainerInterface $container)
40
41
$ this ->container = $ container ;
41
42
}
42
43
43
- public function getRegistry (): ManagerRegistry
44
+ /**
45
+ * @return ManagerRegistry|LegacyManagerRegistry
46
+ */
47
+ public function getRegistry ()
44
48
{
45
49
return $ this ->container ->get ('doctrine_phpcr ' );
46
50
}
You can’t perform that action at this time.
0 commit comments