PHP Classes

File: CHANGELOG.md

Recommend this page to a friend!
  Classes of Francisco   Symfony PHP Encrypt Decrypt Bundle   CHANGELOG.md   Download  
File: CHANGELOG.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: Symfony PHP Encrypt Decrypt Bundle
Encrypt and decrypt values using OpenSSL
Author: By
Last change:
Date: 3 months ago
Size: 1,893 bytes
 

Contents

Class file image Download

Change Log

4.0.0 (2024-02-04) Symfony 7 and PHP 8.2

Major backward compatibility breaking change to Symfony 7 and PHP 8.2.

3.1.0 (2023-02-22) Update

Add attribute support for #[Encrypted] attributes instead of @Encrypted annotations. Add option to catch doctrine events from multiple connections. Add encrypt and decrypt CLI commands. Refactor for symfony flex and Symfony 6 recommended third party bundle structure

3.0.1 (2022-03-13) Symfony 6 and PHP 8

Major backward compatibility breaking change to Symfony 6 and PHP 8.

Encyptor Factory

  • Remove logging and event dispatcher constructors
  • Change constructor to allow passing of an optional encryptor class name.

Service definition was:

    # Factory to create the encryptor/decryptor
    SpecShaper\EncryptBundle\Encryptors\EncryptorFactory:
        arguments: ['@logger', '@event_dispatcher']
        tags:
            - { name: monolog.logger, channel: app }
        
    SpecShaper\EncryptBundle\Encryptors\EncryptorInterface:
        factory: ['@SpecShaper\EncryptBundle\Encryptors\EncryptorFactory','createService']
        arguments:
            - '%spec_shaper_encrypt.method%'
            - '%spec_shaper_encrypt.encrypt_key%'

Service definition becomes:

    # Factory to create the encryptor/decryptor
    SpecShaper\EncryptBundle\Encryptors\EncryptorFactory:
        arguments: ['@event_dispatcher']
        tags:
            - { name: monolog.logger, channel: app }

    # The encryptor service created by the factory according to the passed method and using the encrypt_key
    SpecShaper\EncryptBundle\Encryptors\EncryptorInterface:
        factory: ['@SpecShaper\EncryptBundle\Encryptors\EncryptorFactory','createService']
        arguments:
            $encryptKey: '%spec_shaper_encrypt.encrypt_key%'
            $encryptorClass: '%spec_shaper_encrypt.encryptor_class%' #optional