protected saveToFile ( array $data, string $file ) | ||
$data | array | the authorization data |
$file | string | the file path. |
protected function saveToFile($data, $file)
{
file_put_contents($file, "<?php\nreturn " . VarDumper::export($data) . ";\n", LOCK_EX);
$this->invalidateScriptCache($file);
}