Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FrameworkBundle] fix cache:clear command
- Loading branch information
1 parent
206ebc7
commit a14153a
Showing
2 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -586,12 +586,12 @@ protected function getKernelParameters() | |
|
||
return array_merge( | ||
array( | ||
'kernel.root_dir' => $this->rootDir, | ||
'kernel.root_dir' => realpath($this->rootDir) ?: $this->rootDir, | ||
'kernel.environment' => $this->environment, | ||
'kernel.debug' => $this->debug, | ||
'kernel.name' => $this->name, | ||
'kernel.cache_dir' => $this->getCacheDir(), | ||
'kernel.logs_dir' => $this->getLogDir(), | ||
'kernel.cache_dir' => realpath($this->getCacheDir()) ?: $this->getCacheDir(), | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
inri13666
|
||
'kernel.logs_dir' => realpath($this->getLogDir()) ?: $this->getLogDir(), | ||
'kernel.bundles' => $bundles, | ||
'kernel.charset' => $this->getCharset(), | ||
'kernel.container_class' => $this->getContainerClass(), | ||
|
Following changes make unavailable to use cache/log/root folders as a symlink, for example, to get better performance or other matters.
I have configured the
var/cache
folder to another drive, for example, it's pointed to the memory driveand then I got following result
will output following