rangement fichiers et namespaces

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

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

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

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

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

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

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

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

Loading…
Cancel
Save