protected function writeToFile($file, $salts, Event $event)
    {
        try {
            if (copy(sprintf('%s.example', $file), $file)) {
                file_put_contents($file, implode($salts, "\n"), FILE_APPEND | LOCK_EX);
                return 0;
            }
        } catch (\Exception $e) {
            $event->getIO()->write('<error>An error occured while copying your .env file</error>');
            return 1;
        }
    }