25 lines
360 B
PHP
25 lines
360 B
PHP
|
<?php
|
||
|
/**
|
||
|
* Created by PhpStorm.
|
||
|
* User: lucas
|
||
|
* Date: 05/03/18
|
||
|
* Time: 19:36
|
||
|
*/
|
||
|
|
||
|
namespace api\module\departement;
|
||
|
|
||
|
|
||
|
use database\core\Repo;
|
||
|
use database\repo\departement;
|
||
|
|
||
|
class errorsController
|
||
|
{
|
||
|
|
||
|
public static function get($args){
|
||
|
/** @var departement $repo */
|
||
|
$repo = Repo::getRepo("departement");
|
||
|
|
||
|
return ["data" => $repo->getErrors()];
|
||
|
}
|
||
|
|
||
|
}
|