phpbb\db\output_handler\log_wrapper_migrator_output_handler::file_open PHP Method

file_open() protected method

Open file for logging
protected file_open ( string $file )
$file string File to open
    protected function file_open($file)
    {
        if ($this->filesystem->is_writable(dirname($file))) {
            $this->file_handle = fopen($file, 'w');
        } else {
            throw new \RuntimeException('Unable to write to migrator log file');
        }
    }
log_wrapper_migrator_output_handler