Added error suppression to mkdir in ProxyFactory
See: Symfony\Component\HttpKernel\Kernel#buildContainre
This commit is contained in:
parent
48bf5022e4
commit
5b64dbe195
1 changed files with 5 additions and 5 deletions
|
@ -154,11 +154,11 @@ class ProxyFactory
|
|||
|
||||
$parentDirectory = dirname($fileName);
|
||||
|
||||
if (! is_dir($parentDirectory)) {
|
||||
mkdir($parentDirectory, 0775, true);
|
||||
}
|
||||
|
||||
if ( ! is_writable($parentDirectory)) {
|
||||
if ( ! is_dir($parentDirectory)) {
|
||||
if (false === @mkdir($parentDirectory, 0775, true)) {
|
||||
throw ProxyException::proxyDirectoryNotWritable();
|
||||
}
|
||||
} else if ( ! is_writable($parentDirectory)) {
|
||||
throw ProxyException::proxyDirectoryNotWritable();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue