1
0
mirror of synced 2025-01-30 20:11:49 +03:00

ProxyFactory creates proxy's parent structure if it doesn't exist

This commit is contained in:
Eric Clemmons 2011-10-20 09:35:41 -07:00
parent ca01065c6a
commit 92acd32410

View File

@ -152,6 +152,11 @@ class ProxyFactory
$file = str_replace($placeholders, $replacements, $file);
$parentDirectory = dirname($fileName);
if (! file_exists($parentDirectory)) {
mkdir($parentDirectory, 0, true);
}
file_put_contents($fileName, $file, LOCK_EX);
}