From 3922b6eac791ed13b886910a8df747c19e1fee33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Fri, 20 Jun 2014 19:05:59 +0200 Subject: [PATCH] renamed server config class --- .../core/Server/{ServerConfig.php => Config.php} | 12 ++++++------ application/core/Server/Server.php | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) rename application/core/Server/{ServerConfig.php => Config.php} (89%) diff --git a/application/core/Server/ServerConfig.php b/application/core/Server/Config.php similarity index 89% rename from application/core/Server/ServerConfig.php rename to application/core/Server/Config.php index 01060df6..2257f421 100644 --- a/application/core/Server/ServerConfig.php +++ b/application/core/Server/Config.php @@ -9,7 +9,7 @@ namespace ManiaControl\Server; * @copyright 2014 ManiaControl Team * @license http://www.gnu.org/licenses/ GNU General Public License, Version 3 */ -class ServerConfig { +class Config { /* * Public Properties */ @@ -22,11 +22,11 @@ class ServerConfig { /** * Create a new Server Config Instance * - * @param mixed $id Config Id - * @param mixed $host Server Ip - * @param mixed $port Server Port - * @param mixed $user XmlRpc User - * @param mixed $pass XmlRpc Password + * @param mixed $id + * @param mixed $host + * @param mixed $port + * @param mixed $user + * @param mixed $pass */ public function __construct($id = null, $host = null, $port = null, $user = null, $pass = null) { $this->id = $this->extractConfigData($id); diff --git a/application/core/Server/Server.php b/application/core/Server/Server.php index 07ffb1b8..2d96f1d5 100644 --- a/application/core/Server/Server.php +++ b/application/core/Server/Server.php @@ -26,7 +26,7 @@ class Server implements CallbackListener { /* * Public Properties */ - /** @var ServerConfig $config */ + /** @var Config $config */ public $config = null; public $index = -1; public $ip = null; @@ -125,7 +125,7 @@ class Server implements CallbackListener { $passElements = $serverElement->xpath('pass'); // Create config object - $config = new ServerConfig($serverId, $hostElements, $portElements, $userElements, $passElements); + $config = new Config($serverId, $hostElements, $portElements, $userElements, $passElements); $message = null; if (!$config->validate($message)) { $this->maniaControl->quit("Your config file doesn't seem to be maintained properly. Please check the server configuration again! {$message}", true);