8000 [EasyEncryption] Remove dependency on Doctrine by alexndlm · Pull Request #1667 · eonx-com/easy-monorepo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[EasyEncryption] Remove dependency on Doctrine #1667

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/EasyEncryption/bundle/config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

namespace Symfony\Component\DependencyInjection\Loader\Configurator;

use Doctrine\Bundle\DoctrineBundle\Attribute\AsDoctrineListener;
use EonX\EasyEncryption\Bundle\Enum\ConfigParam;
use EonX\EasyEncryption\Bundle\Enum\ConfigTag;
use EonX\EasyEncryption\Common\Encryptor\Encryptor;
Expand Down Expand Up @@ -48,5 +49,7 @@

$services->set(ObjectEncryptorInterface::class, ObjectEncryptor::class);

$services->set(DoctrineEncryptionListener::class);
if (\class_exists(AsDoctrineListener::class)) {
$services->set(DoctrineEncryptionListener::class);
}
};
4 changes: 2 additions & 2 deletions packages/EasyEncryption/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
"require": {
"php": "^8.2",
"ext-sodium": "*",
"doctrine/collections": "^1.7.2 || ^2.1",
"doctrine/orm": "^2.20",
"eonx-com/easy-utils": "^6.14",
"paragonie/halite": "^5.1",
"symfony/config": "^7.1",
Expand Down Expand Up @@ -39,6 +37,8 @@
},
"suggest": {
"aws/aws-sdk-php": "For AWS Cloud HSM support",
"doctrine/collections": "For encrypting fields with EncryptableField attribute",
"doctrine/orm": "For encrypting fields with EncryptableField attribute",
"ext-pkcs11": "For AWS Cloud HSM support",
"natepage/php-pkcs11-ide-helper": "For better IDE support when using PKCS11",
"symfony/filesystem": "For AWS Cloud HSM support"
Expand Down
0