From 03b89033293b7551e96699991d55023906792d0f Mon Sep 17 00:00:00 2001 From: Ben Davies Date: Fri, 5 Jul 2019 22:07:18 +0100 Subject: [PATCH 1/2] do not use deprecated bcrypt encoder --- tests/Fixtures/app/AppKernel.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/Fixtures/app/AppKernel.php b/tests/Fixtures/app/AppKernel.php index feb981f694c..b5804fc5c1d 100644 --- a/tests/Fixtures/app/AppKernel.php +++ b/tests/Fixtures/app/AppKernel.php @@ -29,7 +29,6 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Routing\RouteCollectionBuilder; -use Symfony\Component\Security\Core\Encoder\SodiumPasswordEncoder; use Symfony\Component\Security\Core\User\UserInterface; /** @@ -97,11 +96,10 @@ protected function configureContainer(ContainerBuilder $c, LoaderInterface $load $loader->load(__DIR__."/config/config_{$this->getEnvironment()}.yml"); - $alg = class_exists(SodiumPasswordEncoder::class) && SodiumPasswordEncoder::isSupported() ? 'auto' : 'bcrypt'; $securityConfig = [ 'encoders' => [ - User::class => $alg, - UserDocument::class => $alg, + User::class => 'auto', + UserDocument::class => 'auto', // Don't use plaintext in production! UserInterface::class => 'plaintext', ], From ea715ee90f85dc049bcfc40a54133a788f1da1f6 Mon Sep 17 00:00:00 2001 From: Ben Davies Date: Fri, 5 Jul 2019 22:07:32 +0100 Subject: [PATCH 2/2] prevent self and direct deprecations --- phpunit.xml.dist | 2 +- phpunit_mongodb.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 2f0a298995d..9b32818c0f2 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -10,7 +10,7 @@ - + diff --git a/phpunit_mongodb.xml b/phpunit_mongodb.xml index 0afdb28354b..08db004899f 100644 --- a/phpunit_mongodb.xml +++ b/phpunit_mongodb.xml @@ -10,7 +10,7 @@ - +