protected function addCryptIfConfigured(Configuration\Backup $backup, array $conf)
    {
        if (isset($conf['crypt'])) {
            $backup->setCrypt(
                new Configuration\Backup\Crypt(
                    $conf['crypt']['type'],
                    false,
                    $conf['crypt']['options']
                )
            );
        }
    }
protected function addCryptIfConfigured(Configuration\Backup $backup, array $conf)
    {
        if (isset($conf['crypt'])) {
            $backup->setCrypt(
                new Configuration\Backup\Crypt(
                    $conf['crypt']['type'],
                    false,
                    $conf['crypt']['options']
                )
            );
        }
    }
protected function addCryptIfConfigured ( Configuration \ Backup $ backup , array $ conf ) { if ( isset ( $ conf [ 'crypt' ] ) ) { $ backup -> setCrypt ( new Configuration \ Backup \ Crypt ( $ conf [ 'crypt' ] [ 'type' ] , false , $ conf [ 'crypt' ] [ 'options' ] ) ) ; } }
Adds a encryption configuration to the given encryption configuration.

@param \phpbu\App\Configuration\Backup $backup
@param array                           $conf
Adds a encryption configuration to the given encryption configuration .