This repository was archived by the owner on May 8, 2018. It is now read-only.
File tree 5 files changed +18
-24
lines changed
5 files changed +18
-24
lines changed Original file line number Diff line number Diff line change 2
2
use Doctrine \DBAL \Tools \Console \Helper \ConnectionHelper ;
3
3
use Doctrine \DBAL \Migrations \Tools \Console \Command as Migrations ;
4
4
use Doctrine \ORM \Tools \Console \Helper \EntityManagerHelper ;
5
- use Lcobucci \ActionMapper2 \DependencyInjection \ContainerConfig ;
6
- use Lcobucci \DependencyInjection \XmlContainerBuilder ;
7
5
use Lcobucci \Fixture \Console \DataFixtureHelper ;
8
6
use Lcobucci \Fixture \Console \ExecuteCommand ;
9
7
use Symfony \Component \Console \Helper \DialogHelper ;
10
8
use Symfony \Component \Console \Helper \HelperSet ;
11
9
12
- $ config = require __DIR__ . '/di-container.php ' ;
13
-
14
- $ builder = new XmlContainerBuilder (
15
- ContainerConfig::getClass ($ config ),
16
- ContainerConfig::getDumpDir ($ config )
17
- );
18
-
19
- $ container = $ builder ->getContainer (
20
- $ config ->getFile (),
21
- array (),
22
- $ config ->getDefaultParameters ()
23
- );
10
+ $ container = require __DIR__ . '/di-container.php ' ;
24
11
25
12
$ em = $ container ->get ('entitymanager ' );
26
13
Original file line number Diff line number Diff line change
1
+ <?php
2
+ use Lcobucci \ActionMapper2 \DependencyInjection \ContainerConfig ;
3
+
4
+ return new ContainerConfig (
5
+ __DIR__ . '/services.xml ' ,
6
+ __DIR__ . '/../tmp ' ,
7
+ array (
8
+ 'app.baseDir ' => realpath (__DIR__ . '/../ ' ) . '/ '
9
+ ),
10
+ '\PHPSC\Conference\Infra\DependencyInjection\Container '
11
+ );
Original file line number Diff line number Diff line change 1
1
<?php
2
- use Lcobucci \ActionMapper2 \ DependencyInjection \ContainerConfig ;
2
+ use Lcobucci \DependencyInjection \XmlContainerBuilder ;
3
3
4
- return new ContainerConfig (
5
- __DIR__ . '/services.xml ' ,
6
- __DIR__ . '/../tmp ' ,
7
- '\PHPSC\Conference\Infra\DependencyInjection\Container ' ,
8
- array (
9
- 'app.baseDir ' => realpath (__DIR__ . '/../ ' ) . '/ '
10
- )
11
- );
4
+ $ builder = new XmlContainerBuilder ();
5
+
6
+ return $ builder ->getContainer (require __DIR__ . '/di-config.php ' );
Original file line number Diff line number Diff line change 11
11
12
12
$ app = ApplicationBuilder::build (
13
13
__DIR__ . '/../config/routes.xml ' ,
14
- require __DIR__ . '/../config/di-container .php ' ,
14
+ require __DIR__ . '/../config/di-config .php ' ,
15
15
new ErrorHandler (),
16
16
'app.cache '
17
17
);
Original file line number Diff line number Diff line change 1
1
/* .php
2
+ /* .meta
2
3
/* .json
3
4
/phperrors.log
You can’t perform that action at this time.
0 commit comments