File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ Changelog
445.x
55===
66
7+ 5.0.2
8+ -----
9+
10+ * Fixed regression in ` TestKernel ` .
11+
7125.0.1
813-----
914
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ public function getCacheDir(): string
179179 public function getLogDir (): string
180180 {
181181 return implode ('/ ' , [
182- $ this ->getKernelDir (),
182+ $ this ->getProjectDir (),
183183 'var ' ,
184184 'logs ' ,
185185 ]);
@@ -190,7 +190,7 @@ public function getLogDir(): string
190190 */
191191 protected function registerConfiguredBundles (): void
192192 {
193- $ bundleFilePath = $ this ->getKernelDir ().'/config/bundles.php ' ;
193+ $ bundleFilePath = $ this ->getProjectDir ().'/config/bundles.php ' ;
194194 if (!file_exists ($ bundleFilePath )) {
195195 return ;
196196 }
@@ -213,8 +213,8 @@ protected function registerConfiguredBundles(): void
213213 protected function build (ContainerBuilder $ container ): void
214214 {
215215 parent ::build ($ container );
216- if (\in_array ($ this ->getEnvironment (), ['test ' , 'phpcr ' ]) && file_exists ($ this ->getKernelDir ().'/config/public_services.php ' )) {
217- $ services = require $ this ->getKernelDir ().'/config/public_services.php ' ;
216+ if (\in_array ($ this ->getEnvironment (), ['test ' , 'phpcr ' ]) && file_exists ($ this ->getProjectDir ().'/config/public_services.php ' )) {
217+ $ services = require $ this ->getProjectDir ().'/config/public_services.php ' ;
218218 $ container ->addCompilerPass (new TestContainerPass ($ services ), PassConfig::TYPE_OPTIMIZE );
219219 }
220220 }
You can’t perform that action at this time.
0 commit comments