rangement fichiers et namespaces

php
Anthony RICHARD 1 year ago
parent 43b1fb314e
commit 09c3c722d6

@ -4,8 +4,9 @@
},
"autoload": {
"psr-4": {
"controleur\\": "controleur/",
"config\\": "config/",
"controller\\": "controller/",
"gateway\\": "gateway/",
"model\\": "model/"
}
}

@ -1,7 +1,7 @@
<?php
namespace controleur;
class Controleur
class ControleurTmp
{
public function __construct()
{

@ -1,10 +1,7 @@
<?php
namespace model;
use config\Connection;
require_once('../config/Connection.php');
require_once('Group.php');
use PDO;
namespace gateway;
class GroupGateway
{
private Connection $con;

@ -1,8 +1,5 @@
<?php
namespace model;
use config\Connection;
use PDO;
namespace gateway;
class UserGateway
{

@ -1,11 +1,6 @@
<?php
namespace model;
use config\Connection;
require_once('../config/Connection.php');
require_once('Vocabulary.php');
namespace gateway;
use mysql_xdevapi\Exception;
use PDO;
class VocabularyGateway
{
private Connection $con;

@ -1,8 +1,6 @@
<?php
namespace model;
use function Sodium\add;
class Group
{
protected int $id;

@ -1,9 +1,6 @@
<?php
namespace model;
use config\Connection;
use http\Exception;
use model\UserGateway;
class MdlStudent
{

Loading…
Cancel
Save