From cfcfbc6de985ec0b7093fc21d476fce2d7329836 Mon Sep 17 00:00:00 2001 From: Samuel Tallet Date: Sun, 12 Jul 2020 16:45:00 +0200 Subject: [PATCH] Remove useless constant --- config.php | 7 ------- src/Helpers/MongoDBHelper.php | 4 ---- 2 files changed, 11 deletions(-) diff --git a/config.php b/config.php index 3dc9aea..7d95485 100644 --- a/config.php +++ b/config.php @@ -27,10 +27,3 @@ * @var string */ define('MPG_MONGODB_PORT', '27017'); - -/** - * MongoDB server database. - * - * @var string - */ -define('MPG_MONGODB_DATABASE', ''); diff --git a/src/Helpers/MongoDBHelper.php b/src/Helpers/MongoDBHelper.php index 46d02cd..ffb1ad5 100644 --- a/src/Helpers/MongoDBHelper.php +++ b/src/Helpers/MongoDBHelper.php @@ -25,10 +25,6 @@ public static function createClient() : MongoDBClient { $clientUri .= ':' . MPG_MONGODB_PORT; } - if ( !empty(MPG_MONGODB_DATABASE) ) { - $clientUri .= '/' . MPG_MONGODB_DATABASE; - } - return new MongoDBClient($clientUri); }