Skip to content

Commit

Permalink
Add classes with prefix "default" for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeliot-Tm committed Jan 4, 2025
1 parent 4d5c0bd commit a946029
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Service/ConnectionPreparer.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

use Doctrine\DBAL\Connection;

final class ConnectionPreparer implements ConnectionPreparerInterface
class ConnectionPreparer implements ConnectionPreparerInterface
{
public function prepareConnection(Connection $connection): void
{
Expand Down
13 changes: 13 additions & 0 deletions src/Service/DefaultConnectionPreparer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

declare(strict_types=1);

namespace Aeliot\Bundle\DoctrineEncrypted\Service;

/**
* @deprecated use {@see ConnectionPreparer }
*/
final class DefaultConnectionPreparer extends ConnectionPreparer
{

}
13 changes: 13 additions & 0 deletions src/Service/DefaultCryptographicSQLFunctionNameProvider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

declare(strict_types=1);

namespace Aeliot\Bundle\DoctrineEncrypted\Service;

/**
* @deprecated use {@see CryptographicSQLFunctionNameProvider }
*/
final class DefaultCryptographicSQLFunctionNameProvider extends CryptographicSQLFunctionNameProvider
{

}
13 changes: 13 additions & 0 deletions src/Service/DefaultEncryptionAvailabilityChecker.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

declare(strict_types=1);

namespace Aeliot\Bundle\DoctrineEncrypted\Service;

/**
* @deprecated use {@see EncryptionAvailabilityChecker }
*/
final class DefaultEncryptionAvailabilityChecker extends EncryptionAvailabilityChecker
{

}
13 changes: 13 additions & 0 deletions src/Service/DefaultSecretProvider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

declare(strict_types=1);

namespace Aeliot\Bundle\DoctrineEncrypted\Service;

/**
* @deprecated use {@see SecretProvider }
*/
final class DefaultSecretProvider extends SecretProvider
{

}
2 changes: 1 addition & 1 deletion src/Service/EncryptionAvailabilityChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

use Doctrine\ORM\EntityManager;

final class EncryptionAvailabilityChecker implements EncryptionAvailabilityCheckerInterface
class EncryptionAvailabilityChecker implements EncryptionAvailabilityCheckerInterface
{
public function isEncryptionAvailable(EntityManager $manager, bool $isGoingEncrypt): bool
{
Expand Down
2 changes: 1 addition & 1 deletion src/Service/SecretProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

use Doctrine\DBAL\Connection;

final class SecretProvider implements SecretProviderInterface
class SecretProvider implements SecretProviderInterface
{
public function getKey(string|Connection $connection): string
{
Expand Down

0 comments on commit a946029

Please sign in to comment.