File tree 3 files changed +6
-16
lines changed
3 files changed +6
-16
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env php
2
2
<?php
3
3
4
+ declare (strict_types=1 );
5
+
4
6
$ cli = include __DIR__ .'/console.php ' ;
5
7
$ cli ->run ();
6
-
Original file line number Diff line number Diff line change 16
16
use Gedmo \DoctrineExtensions ;
17
17
use Symfony \Component \Console \Application ;
18
18
19
- /*
20
- * This file is part of the Doctrine Behavioral Extensions package.
21
- * (c) Gediminas Morkevicius <[email protected] > http://www.gediminasm.org
22
- * For the full copyright and license information, please view the LICENSE
23
- * file that was distributed with this source code.
24
- */
25
19
/** @var EntityManager $em */
26
20
$ em = include __DIR__ .'/../em.php ' ;
27
21
Original file line number Diff line number Diff line change 28
28
use Gedmo \Tree \TreeListener ;
29
29
use Symfony \Component \Cache \Adapter \ArrayAdapter ;
30
30
31
- /*
32
- * This file is part of the Doctrine Behavioral Extensions package.
33
- * (c) Gediminas Morkevicius <[email protected] > http://www.gediminasm.org
34
- * For the full copyright and license information, please view the LICENSE
35
- * file that was distributed with this source code.
36
- */
37
-
38
31
// this entity manager configuration works with the Doctrine DBAL and ORM.
39
32
// Regarding the AnnotationDriver setup, it most probably will be changed into
40
33
// XML because the annotation driver fails to read other classes in same namespace.
176
169
$ config ->setQueryCache ($ cache );
177
170
$ config ->setResultCache ($ cache );
178
171
179
- // Finally, we create the entity manager
180
172
$ connection = DriverManager::getConnection ($ connection , $ config );
181
- $ em = new EntityManager ($ connection , $ config , $ eventManager );
173
+
174
+ // Finally, we create and return the entity manager
175
+
176
+ return new EntityManager ($ connection , $ config , $ eventManager );
You can’t perform that action at this time.
0 commit comments