From 816ff486ef0d43a83fd6fc3e2df76cd6135379bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Fri, 20 Jun 2014 19:06:55 +0200 Subject: [PATCH] renamed database config class --- .../Database/{DatabaseConfig.php => Config.php} | 14 +++++++------- application/core/Database/Database.php | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) rename application/core/Database/{DatabaseConfig.php => Config.php} (82%) diff --git a/application/core/Database/DatabaseConfig.php b/application/core/Database/Config.php similarity index 82% rename from application/core/Database/DatabaseConfig.php rename to application/core/Database/Config.php index 0e32050f..36c0f9d9 100644 --- a/application/core/Database/DatabaseConfig.php +++ b/application/core/Database/Config.php @@ -9,7 +9,7 @@ namespace ManiaControl\Database; * @copyright 2014 ManiaControl Team * @license http://www.gnu.org/licenses/ GNU General Public License, Version 3 */ -class DatabaseConfig { +class Config { /* * Public Properties */ @@ -20,13 +20,13 @@ class DatabaseConfig { public $name = null; /** - * Create a new Server Config Instance + * Create a new Database Config Instance * - * @param string $host Server Ip - * @param string $port Server Port - * @param string $user User - * @param string $pass Password - * @param string $name Name + * @param string $host + * @param string $port + * @param string $user + * @param string $pass + * @param string $name */ public function __construct($host = null, $port = null, $user = null, $pass = null, $name = null) { $this->host = (string)$host; diff --git a/application/core/Database/Database.php b/application/core/Database/Database.php index e2911212..df1f3791 100644 --- a/application/core/Database/Database.php +++ b/application/core/Database/Database.php @@ -23,7 +23,7 @@ class Database implements TimerListener { * Private Properties */ private $maniaControl = null; - /** @var DatabaseConfig $config */ + /** @var Config $config */ private $config = null; /** @@ -105,7 +105,7 @@ class Database implements TimerListener { $name = (string)$nameElements[0]; // Create config object - $config = new DatabaseConfig($host, $port, $user, $pass, $name); + $config = new Config($host, $port, $user, $pass, $name); if (!$config->validate()) { $this->maniaControl->quit("Your config file doesn't seem to be maintained properly. Please check the database configuration again!", true); }