Symfony\Component\Filesystem\Filesystem::dumpFile
Atomically dumps content into a file.
Signature
public function dumpFile(string
$filename,
[string
$content = 0666,
[integer
$mode = 0666]] )
Parameters
$filename
— string- The file to be written to.
$content
— string- The data to write into the file.
$mode
— integer- The file mode (octal).
Errors/Exceptions
-
IOException
- If the file cannot be written to.