src/Controller/Plugin/YawikConfigCreator.php
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);
    }
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);
    }
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 ) ; }
Writes the configuration content in a file.

Returns false, if file cannot be created.

@param string $content

@return bool
Writes the configuration content in a file .