forked from integr8rs/DoctrineEncryptBundle
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework service-definitions and split it up in multiple files so we su…
…pport sf 4.x-7.x
- Loading branch information
Showing
5 changed files
with
53 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
services: | ||
# Use the regular annotation reader | ||
ambta_doctrine_annotation_reader: "@annotations.reader" | ||
|
||
ambta_doctrine_encrypt.orm_subscriber: | ||
class: Ambta\DoctrineEncryptBundle\Subscribers\DoctrineEncryptSubscriber | ||
arguments: ["@ambta_doctrine_annotation_reader", "@ambta_doctrine_encrypt.encryptor"] | ||
tags: | ||
- { name: doctrine.event_subscriber } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
services: | ||
ambta_doctrine_attribute_reader: | ||
class: Ambta\DoctrineEncryptBundle\Mapping\AttributeReader | ||
|
||
ambta_doctrine_annotation_reader: | ||
class: Ambta\DoctrineEncryptBundle\Mapping\AttributeAnnotationReader | ||
arguments: ["@ambta_doctrine_attribute_reader", "@annotations.reader", "%kernel.cache_dir%"] | ||
|
||
ambta_doctrine_encrypt.orm_subscriber: | ||
class: Ambta\DoctrineEncryptBundle\Subscribers\DoctrineEncryptSubscriber | ||
arguments: ["@ambta_doctrine_annotation_reader", "@ambta_doctrine_encrypt.encryptor"] | ||
tags: | ||
- { name: doctrine.event_subscriber } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
services: | ||
ambta_doctrine_attribute_reader: | ||
class: Ambta\DoctrineEncryptBundle\Mapping\AttributeReader | ||
|
||
ambta_doctrine_annotation_reader: '@ambta_doctrine_attribute_reader' | ||
|
||
ambta_doctrine_encrypt.orm_subscriber: | ||
class: Ambta\DoctrineEncryptBundle\Subscribers\DoctrineEncryptSubscriber | ||
arguments: [ '@ambta_doctrine_attribute_reader', '@ambta_doctrine_encrypt.encryptor' ] | ||
tags: | ||
- { name: 'doctrine.event_listener', event: 'postLoad' } | ||
- { name: 'doctrine.event_listener', event: 'onFlush' } | ||
- { name: 'doctrine.event_listener', event: 'preFlush' } | ||
- { name: 'doctrine.event_listener', event: 'postFlush' } | ||
- { name: 'doctrine.event_listener', event: 'onClear' } |