From 6e52238e58da5030e179f61b84e10834eba0bf6b Mon Sep 17 00:00:00 2001 From: Joe Bennett Date: Wed, 10 Jun 2020 22:08:42 +1000 Subject: [PATCH] #37180 coding standards fixes for fabbot --- src/Symfony/Component/Lock/Store/MongoDbStore.php | 1 + src/Symfony/Component/Lock/Store/StoreFactory.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Symfony/Component/Lock/Store/MongoDbStore.php b/src/Symfony/Component/Lock/Store/MongoDbStore.php index 93cb49dfcb37c..7975a1abda87a 100644 --- a/src/Symfony/Component/Lock/Store/MongoDbStore.php +++ b/src/Symfony/Component/Lock/Store/MongoDbStore.php @@ -83,6 +83,7 @@ class MongoDbStore implements BlockingStoreInterface * * writeConcern, readConcern and readPreference are not specified by * MongoDbStore meaning the collection's settings will take effect. + * * @see https://docs.mongodb.com/manual/applications/replication/ */ public function __construct($mongo, array $options = [], float $initialTtl = 300.0) diff --git a/src/Symfony/Component/Lock/Store/StoreFactory.php b/src/Symfony/Component/Lock/Store/StoreFactory.php index abba680a4e03b..8f9196429c8f7 100644 --- a/src/Symfony/Component/Lock/Store/StoreFactory.php +++ b/src/Symfony/Component/Lock/Store/StoreFactory.php @@ -82,6 +82,7 @@ public static function createStore($connection) case 0 === strpos($connection, 'mongodb'): trigger_deprecation('symfony/lock', '5.2', 'Using "%s" to construct a "%s" with a connection URI string is deprecated. Use a "%s" instead.', __CLASS__, MongoDbStore::class, Collection::class); + return new MongoDbStore($connection); case 0 === strpos($connection, 'mssql://'):