ProxyFactory creates proxy's parent structure if it doesn't exist
This commit is contained in:
parent
ca01065c6a
commit
92acd32410
@ -152,6 +152,11 @@ class ProxyFactory
|
|||||||
|
|
||||||
$file = str_replace($placeholders, $replacements, $file);
|
$file = str_replace($placeholders, $replacements, $file);
|
||||||
|
|
||||||
|
$parentDirectory = dirname($fileName);
|
||||||
|
if (! file_exists($parentDirectory)) {
|
||||||
|
mkdir($parentDirectory, 0, true);
|
||||||
|
}
|
||||||
|
|
||||||
file_put_contents($fileName, $file, LOCK_EX);
|
file_put_contents($fileName, $file, LOCK_EX);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user