src/base/extension/AssetsParser.php 1 location
|
@@ 198-204 (lines=7) @@
|
195 |
|
* @param string $content |
196 |
|
* @throws ConfigException |
197 |
|
*/ |
198 |
|
private function storeContents($path, $content = "") |
199 |
|
{ |
200 |
|
GeneratorHelper::createDir(dirname($path)); |
201 |
|
if ("" !== $content && false === file_put_contents($path, $content)) { |
202 |
|
throw new ConfigException(_('No se tienen permisos para escribir en ' . $path)); |
203 |
|
} |
204 |
|
} |
205 |
|
|
206 |
|
/** |
207 |
|
* Método que imprime el resultado de la generación de los assets |
src/base/Cache.php 1 location
|
@@ 49-55 (lines=7) @@
|
46 |
|
* @param string $path |
47 |
|
* @throws ConfigException |
48 |
|
*/ |
49 |
|
private function saveTextToFile($data, $path) |
50 |
|
{ |
51 |
|
GeneratorHelper::createDir(dirname($path)); |
52 |
|
if (false === FileHelper::writeFile($path, $data)) { |
53 |
|
throw new ConfigException(_('No se tienen los permisos suficientes para escribir en el fichero ') . $path); |
54 |
|
} |
55 |
|
} |
56 |
|
|
57 |
|
/** |
58 |
|
* Método que extrae el texto de un fichero |