File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,11 @@ public function getCacheDir(): string
4545 return realpath (sys_get_temp_dir ()).'/NyholmBundleTest/cachePluginInteractionTest ' ;
4646 }
4747
48+ public function getShareDir (): ?string
49+ {
50+ return $ this ->getCacheDir ();
51+ }
52+
4853 /**
4954 * Returns the kernel parameters.
5055 */
@@ -77,8 +82,7 @@ protected function getKernelParameters(): array
7782 'kernel.bundles_metadata ' => $ bundlesMetadata ,
7883 'kernel.charset ' => $ this ->getCharset (),
7984 'kernel.container_class ' => $ this ->getContainerClass (),
80- 'kernel.share_dir ' => realpath ($ this ->getProjectDir ()) ?: $ this ->getProjectDir (),
81- ];
85+ ] + (null !== ($ dir = $ this ->getShareDir ()) ? ['kernel.share_dir ' => realpath ($ dir ) ?: $ dir ] : []);
8286 }
8387
8488 /**
You can’t perform that action at this time.
0 commit comments