Helper/ConfigurationHelper.php
private static function getEncrypterConfiguration($name, array $key_encryption_algorithms, array $content_encryption_algorithms, array $compression_methods = ['DEF'], $create_decrypter = false, $is_public = true)
    {
        self::checkParameters($name, $is_public);
        Assertion::allString($key_encryption_algorithms);
        Assertion::notEmpty($key_encryption_algorithms);
        Assertion::allString($content_encryption_algorithms);
        Assertion::notEmpty($content_encryption_algorithms);
        Assertion::boolean($create_decrypter);

        return [
            self::BUNDLE_ALIAS => [
                'encrypters' => [
                    $name => [
                        'is_public'                     => $is_public,
                        'key_encryption_algorithms'     => $key_encryption_algorithms,
                        'content_encryption_algorithms' => $content_encryption_algorithms,
                        'compression_methods'           => $compression_methods,
                        'create_decrypter'              => $create_decrypter,
                    ],
                ],
            ],
        ];
    }
private static function getEncrypterConfiguration($name, array $key_encryption_algorithms, array $content_encryption_algorithms, array $compression_methods = ['DEF'], $create_decrypter = false, $is_public = true)
    {
        self::checkParameters($name, $is_public);
        Assertion::allString($key_encryption_algorithms);
        Assertion::notEmpty($key_encryption_algorithms);
        Assertion::allString($content_encryption_algorithms);
        Assertion::notEmpty($content_encryption_algorithms);
        Assertion::boolean($create_decrypter);

        return [
            self::BUNDLE_ALIAS => [
                'encrypters' => [
                    $name => [
                        'is_public'                     => $is_public,
                        'key_encryption_algorithms'     => $key_encryption_algorithms,
                        'content_encryption_algorithms' => $content_encryption_algorithms,
                        'compression_methods'           => $compression_methods,
                        'create_decrypter'              => $create_decrypter,
                    ],
                ],
            ],
        ];
    }
private static function getEncrypterConfiguration ( $ name , array $ key_encryption_algorithms , array $ content_encryption_algorithms , array $ compression_methods = [ 'DEF' ] , $ create_decrypter = false , $ is_public = true ) { self :: checkParameters ( $ name , $ is_public ) ; Assertion :: allString ( $ key_encryption_algorithms ) ; Assertion :: notEmpty ( $ key_encryption_algorithms ) ; Assertion :: allString ( $ content_encryption_algorithms ) ; Assertion :: notEmpty ( $ content_encryption_algorithms ) ; Assertion :: boolean ( $ create_decrypter ) ; return [ self :: BUNDLE_ALIAS => [ 'encrypters' => [ $ name => [ 'is_public' => $ is_public , 'key_encryption_algorithms' => $ key_encryption_algorithms , 'content_encryption_algorithms' => $ content_encryption_algorithms , 'compression_methods' => $ compression_methods , 'create_decrypter' => $ create_decrypter , ] , ] , ] , ] ; }
@param string   $name
@param string[] $key_encryption_algorithms
@param string[] $content_encryption_algorithms
@param string[] $compression_methods
@param bool     $create_decrypter
@param bool     $is_public

@return array
@param string $name @param string [] $key_encryption_algorithms @param string [] $content_encryption_algorithms @param string [] $compression_methods @param bool $create_decrypter @param bool $is_public