2018-03-05 19:30:05 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Created by PhpStorm.
|
|
|
|
* User: lucas
|
|
|
|
* Date: 05/03/18
|
|
|
|
* Time: 19:36
|
|
|
|
*/
|
|
|
|
|
2018-03-15 16:40:12 +00:00
|
|
|
namespace api\module\department;
|
2018-03-05 19:30:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
use database\core\Repo;
|
2018-03-15 16:40:12 +00:00
|
|
|
use database\repo\department;
|
2018-03-05 19:30:05 +00:00
|
|
|
|
|
|
|
class errorsController
|
|
|
|
{
|
|
|
|
|
|
|
|
public static function get($args){
|
2018-03-15 16:40:12 +00:00
|
|
|
/** @var department $repo */
|
|
|
|
$repo = Repo::getRepo("department");
|
2018-03-05 19:30:05 +00:00
|
|
|
|
|
|
|
return ["data" => $repo->getErrors()];
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|