public static function syncConfig(Connection $connection, array $configs, \Closure $callback)
    {
        foreach ($configs as $row) {
            $config = $connection->fetchAssoc('SELECT id, name FROM fusio_config WHERE name = :name', [
                'name' => $row['name']
            ]);

            if (empty($config)) {
                self::insertRow('fusio_config', $row, $callback);
            }
        }
    }
public static function syncConfig(Connection $connection, array $configs, \Closure $callback)
    {
        foreach ($configs as $row) {
            $config = $connection->fetchAssoc('SELECT id, name FROM fusio_config WHERE name = :name', [
                'name' => $row['name']
            ]);

            if (empty($config)) {
                self::insertRow('fusio_config', $row, $callback);
            }
        }
    }
public static function syncConfig ( Connection $ connection , array $ configs , \ Closure $ callback ) { foreach ( $ configs as $ row ) { $ config = $ connection -> fetchAssoc ( 'SELECT id, name FROM fusio_config WHERE name = :name' , [ 'name' => $ row [ 'name' ] ] ) ; if ( empty ( $ config ) ) { self :: insertRow ( 'fusio_config' , $ row , $ callback ) ; } } }
Helper method to sync all config values of an existing system

@param \Doctrine\DBAL\Connection $connection
@param array $configs
@param \Closure $callback
Helper method to sync all config values of an existing system