Skip to content

Commit 669898b

Browse files
committed
Revert newly introduced dependency
1 parent 30a1e32 commit 669898b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
use Symfony\Component\Config\Loader\LoaderResolver;
3131
use Symfony\Component\Config\Loader\DelegatingLoader;
3232
use Symfony\Component\Config\ConfigCache;
33-
use Symfony\Component\Config\Util\CacheFileUtils;
3433
use Symfony\Component\ClassLoader\ClassCollectionLoader;
3534

3635
/**
@@ -614,7 +613,13 @@ protected function getEnvParameters()
614613
protected function buildContainer()
615614
{
616615
foreach (array('cache' => $this->getCacheDir(), 'logs' => $this->getLogDir()) as $name => $dir) {
617-
CacheFileUtils::createCacheDir($dir, $name);
616+
if (!is_dir($dir)) {
617+
if (false === @mkdir($dir, 0777, true)) {
618+
throw new \RuntimeException(sprintf("Unable to create the %s directory (%s)\n", $name, $dir));
619+
}
620+
} elseif (!is_writable($dir)) {
621+
throw new \RuntimeException(sprintf("Unable to write in the %s directory (%s)\n", $name, $dir));
622+
}
618623
}
619624

620625
$container = $this->getContainerBuilder();

0 commit comments

Comments
 (0)