public function writeSetting()
    {
        $config = [
            'Datasources' => [
                'default' => $this->config('connection'),
            ],
            'Security' => [
                'salt' => $this->salt()
            ],
            'debug' => false,
        ];

        $filePath = $this->config('settingsPath');
        if (!str_ends_with(strtolower($filePath), '.tmp')) {
            $filePath .= '.tmp';
        }

        $settingsFile = new File($filePath, true);

        return $settingsFile->write("<?php\n return " . var_export($config, true) . ";\n");
    }
public function writeSetting()
    {
        $config = [
            'Datasources' => [
                'default' => $this->config('connection'),
            ],
            'Security' => [
                'salt' => $this->salt()
            ],
            'debug' => false,
        ];

        $filePath = $this->config('settingsPath');
        if (!str_ends_with(strtolower($filePath), '.tmp')) {
            $filePath .= '.tmp';
        }

        $settingsFile = new File($filePath, true);

        return $settingsFile->write("<?php\n return " . var_export($config, true) . ";\n");
    }
public function writeSetting ( ) { $ config = [ 'Datasources' => [ 'default' => $ this -> config ( 'connection' ) , ] , 'Security' => [ 'salt' => $ this -> salt ( ) ] , 'debug' => false , ] ; $ filePath = $ this -> config ( 'settingsPath' ) ; if ( ! str_ends_with ( strtolower ( $ filePath ) , '.tmp' ) ) { $ filePath .= '.tmp' ; } $ settingsFile = new File ( $ filePath , true ) ; return $ settingsFile -> write ( "<?php\n return " . var_export ( $ config , true ) . ";\n" ) ; }
Creates site's "settings.php" file.

@return bool True on success
Creates site s settings . php file .