File tree Expand file tree Collapse file tree 2 files changed +4
-21
lines changed Expand file tree Collapse file tree 2 files changed +4
-21
lines changed Original file line number Diff line number Diff line change 1717 },
1818 "require" : {
1919 "php" : " ^7.0" ,
20- "php-di/php-di" : " ^5.4" ,
21- "doctrine/cache" : " ^1.6" ,
20+ "php-di/php-di" : " ^6.0" ,
2221 "mindplay/composer-locator" : " ^2.1.2"
2322 },
2423 "require-dev" : {
2524 "phpunit/phpunit" : " ^5.7"
26- }
25+ },
26+ "minimum-stability" : " alpha" ,
27+ "prefer-stable" : true
2728}
Original file line number Diff line number Diff line change 22
33namespace DI \Kernel ;
44
5- use ComposerLocator ;
6- use DI \Cache \ArrayCache ;
75use DI \Container ;
86use DI \ContainerBuilder ;
9- use Doctrine \Common \Cache \Cache ;
107
118/**
129 * Application kernel.
@@ -66,11 +63,6 @@ public function createContainer() : Container
6663 {
6764 $ containerBuilder = new ContainerBuilder ();
6865
69- $ cache = $ this ->getContainerCache ();
70- if ($ cache ) {
71- $ containerBuilder ->setDefinitionCache ($ cache );
72- }
73-
7466 foreach ($ this ->modules as $ module ) {
7567 $ this ->loadModule ($ containerBuilder , $ module );
7668 }
@@ -84,16 +76,6 @@ public function createContainer() : Container
8476 return $ containerBuilder ->build ();
8577 }
8678
87- /**
88- * Override this method to configure the cache to use for container definitions.
89- *
90- * @return Cache|null
91- */
92- protected function getContainerCache ()
93- {
94- return new ArrayCache ();
95- }
96-
9779 /**
9880 * Override this method to customize the container builder before it is used.
9981 */
You can’t perform that action at this time.
0 commit comments