Update the tools to use the new namespaces

This commit is contained in:
2021-05-10 15:04:36 +02:00
parent eb30d8ef97
commit 03ede5c375
4 changed files with 20 additions and 20 deletions

View File

@@ -4,8 +4,8 @@
@package domframework
@author Dominique Fournier <dominique@fournier38.fr> */
require_once ("domframework/getopts.php");
require_once ("domframework/dblayeroo.php");
require_once (__DIR__."/../src/Getopts.php");
require_once (__DIR__."/../src/Dblayeroo.php");
/** Generate the model files from an existing database
* Provide the DSN to connect to the database, and the program will generate
@@ -33,7 +33,7 @@ class modelGenerator
*/
public function __construct ()
{
$getopts = new \getopts ();
$getopts = new Domframework\Getopts ();
$getopts->add ("Help", "?h", "help", "Help of the software");
$getopts->add ("DSN", "", "dsn:", "DSN - Data Source Name\n".
" Exemple : --dsn \"mysql:dbname=DBNAME\"",
@@ -70,7 +70,7 @@ class modelGenerator
$this->namespaceName = $getopts->get ("Namespace");
try
{
$this->db = new \dblayeroo ($dsn,
$this->db = new Domframework\Dblayeroo ($dsn,
$getopts->get ("Username"),
$getopts->get ("Password"));
}