public function write() {
		Log::instance()->write( 'Writing config.', 1 );

		$create_dir = Utils\create_snapshot_directory();

		if ( ! $create_dir ) {
			Log::instance()->write( 'Cannot create necessary snapshot directory.', 0, 'error' );

			return false;
		}

		file_put_contents( Utils\get_snapshot_directory() . 'config.json', json_encode( $this->config, JSON_PRETTY_PRINT ) );
	}
public function write() {
		Log::instance()->write( 'Writing config.', 1 );

		$create_dir = Utils\create_snapshot_directory();

		if ( ! $create_dir ) {
			Log::instance()->write( 'Cannot create necessary snapshot directory.', 0, 'error' );

			return false;
		}

		file_put_contents( Utils\get_snapshot_directory() . 'config.json', json_encode( $this->config, JSON_PRETTY_PRINT ) );
	}
public function write ( ) { Log :: instance ( ) -> write ( 'Writing config.' , 1 ) ; $ create_dir = Utils \ create_snapshot_directory ( ) ; if ( ! $ create_dir ) { Log :: instance ( ) -> write ( 'Cannot create necessary snapshot directory.' , 0 , 'error' ) ; return false ; } file_put_contents ( Utils \ get_snapshot_directory ( ) . 'config.json' , json_encode ( $ this -> config , JSON_PRETTY_PRINT ) ) ; }
Write config to current config file
Write config to current config file