renamed 'departement' to 'department'
This commit is contained in:
parent
2a0d8e15b1
commit
e1bdac7f5b
|
@ -6,18 +6,18 @@
|
||||||
* Time: 19:36
|
* Time: 19:36
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace api\module\departement;
|
namespace api\module\department;
|
||||||
|
|
||||||
|
|
||||||
use database\core\Repo;
|
use database\core\Repo;
|
||||||
use database\repo\departement;
|
use database\repo\department;
|
||||||
|
|
||||||
class errorsController
|
class errorsController
|
||||||
{
|
{
|
||||||
|
|
||||||
public static function get($args){
|
public static function get($args){
|
||||||
/** @var departement $repo */
|
/** @var department $repo */
|
||||||
$repo = Repo::getRepo("departement");
|
$repo = Repo::getRepo("department");
|
||||||
|
|
||||||
return ["data" => $repo->getErrors()];
|
return ["data" => $repo->getErrors()];
|
||||||
}
|
}
|
|
@ -6,19 +6,19 @@
|
||||||
* Time: 17:36
|
* Time: 17:36
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace api\module\departement;
|
namespace api\module\department;
|
||||||
|
|
||||||
|
|
||||||
use database\core\Repo;
|
use database\core\Repo;
|
||||||
use database\repo\departement;
|
use database\repo\department;
|
||||||
|
|
||||||
class statsController
|
class statsController
|
||||||
{
|
{
|
||||||
|
|
||||||
public static function get($args){
|
public static function get($args){
|
||||||
|
|
||||||
/** @var departement $repo */
|
/** @var department $repo */
|
||||||
$repo = Repo::getRepo("departement");
|
$repo = Repo::getRepo("department");
|
||||||
|
|
||||||
return ["data" => $repo->getStats()];
|
return ["data" => $repo->getStats()];
|
||||||
}
|
}
|
|
@ -12,7 +12,7 @@ namespace database\repo;
|
||||||
use database\core\Repo;
|
use database\core\Repo;
|
||||||
use database\core\Repo_i;
|
use database\core\Repo_i;
|
||||||
|
|
||||||
class departement extends Repo_i
|
class department extends Repo_i
|
||||||
{
|
{
|
||||||
|
|
||||||
public function getErrors() : array {
|
public function getErrors() : array {
|
Loading…
Reference in New Issue