RoboFile::generateFile
Checks file existance before generating new file.
Signature
private function generateFile(string
$template,
array
$data,
string
$destination,
[boolean
$override = false] )
Parameters
$template
—
string
- Filename from CODE_FOLDER_PATH directory.
$data
—
array
- Values to use in template.
$destination
—
string
- Absolute path to new file.
$override
—
boolean
- If set tu true method will overwrite file in case it exists. Default: false
Returns
- string
- Returns one of the following strings: [FILE_ALREADY_EXISTS, FILE_CREATED] accordingly.