File tree 2 files changed +4
-21
lines changed 2 files changed +4
-21
lines changed Original file line number Diff line number Diff line change 17
17
},
18
18
"require" : {
19
19
"php" : " ^7.0" ,
20
- "php-di/php-di" : " ^5.4" ,
21
- "doctrine/cache" : " ^1.6" ,
20
+ "php-di/php-di" : " ^6.0" ,
22
21
"mindplay/composer-locator" : " ^2.1.2"
23
22
},
24
23
"require-dev" : {
25
24
"phpunit/phpunit" : " ^5.7"
26
- }
25
+ },
26
+ "minimum-stability" : " alpha" ,
27
+ "prefer-stable" : true
27
28
}
Original file line number Diff line number Diff line change 2
2
3
3
namespace DI \Kernel ;
4
4
5
- use ComposerLocator ;
6
- use DI \Cache \ArrayCache ;
7
5
use DI \Container ;
8
6
use DI \ContainerBuilder ;
9
- use Doctrine \Common \Cache \Cache ;
10
7
11
8
/**
12
9
* Application kernel.
@@ -66,11 +63,6 @@ public function createContainer() : Container
66
63
{
67
64
$ containerBuilder = new ContainerBuilder ();
68
65
69
- $ cache = $ this ->getContainerCache ();
70
- if ($ cache ) {
71
- $ containerBuilder ->setDefinitionCache ($ cache );
72
- }
73
-
74
66
foreach ($ this ->modules as $ module ) {
75
67
$ this ->loadModule ($ containerBuilder , $ module );
76
68
}
@@ -84,16 +76,6 @@ public function createContainer() : Container
84
76
return $ containerBuilder ->build ();
85
77
}
86
78
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
-
97
79
/**
98
80
* Override this method to customize the container builder before it is used.
99
81
*/
You can’t perform that action at this time.
0 commit comments