From 4e0cee02644981b00c4d1c39be06930334eb6ad3 Mon Sep 17 00:00:00 2001
From: Guilherme Arthur Geronimo <guilherme.geronimo@ufsc.br>
Date: Mon, 20 May 2024 18:30:05 -0300
Subject: [PATCH] Refactor Command.php

---
 bin/smartdata/management/command.php | 30 ++--------------------------
 1 file changed, 2 insertions(+), 28 deletions(-)

diff --git a/bin/smartdata/management/command.php b/bin/smartdata/management/command.php
index 3d42f92..f867479 100755
--- a/bin/smartdata/management/command.php
+++ b/bin/smartdata/management/command.php
@@ -4,34 +4,8 @@ require_once './Console/CommandLine.php';
 require_once './Console/CommandLine/Option.php';
 require_once './Console/CommandLine/Command.php';
 
-//require_once __DIR__.'/Console/CommandLine.php';
-//require_once __DIR__.'/Console/CommandLine/Option.php';
-//require_once __DIR__.'/Console/CommandLine/Command.php';
-
-//require_once __DIR__.'/../Config.php';
-//use SmartData\Config;
-
-final class Config
-{
-
- const MYSQL_SEVERNAME = 'localhost';
- const MYSQL_PORT      = 3306;
- const MYSQL_DBNAME    = 'smartdata_v1';
- const MYSQL_USERNAME  = 'smartdata';
- const MYSQL_PASSWORD  = '1ol31lSh010mG9wY';
-
- const MYSQL_SUPERUSER = 'smartdata_admin';
- const MYSQL_SUPERPASS = '6wg5fbB5fOIuzXcW';
-
- const CASSANDRA_SERVERNAME   = 'localhost';
- const CASSANDRA_PORT         = 9042;
-
- const CASSANDRA_SUPERUSER = 'cassandra';
- const CASSANDRA_SUPERPASS = 'Pdx#W63$B7-pNv'; //'K#dM841-lwx';
-
- const CASSANDRA_KEYSPACE     = 'smartdata_v1';
- const CASSANDRA_MAX_ROW_SIZE = 2000000000; //%(Two billion - The max is 2^31)
-}
+require_once __DIR__.'/../Config.php';
+use SmartData\Config\Config_V1_1 as Config;
 
 $parser = new Console_CommandLine(array(
     'description' => 'description description description description.',
-- 
GitLab