protected function writeConfigFile($content)
    {
        if (!is_writable('config/autoload')) {
            return false;
        }

        $file = 'config/autoload/yawik.config.global.php';
        // need to chmod 777 to be usable by docker and local environment
        @touch($file);
        @chmod($file, 0777);
        return (bool) @file_put_contents($file, $content, LOCK_EX);
    }