From 6e748327982dd1deb5bfb91aa65653bfb408684e Mon Sep 17 00:00:00 2001 From: gamonoid Date: Sun, 26 Nov 2017 20:16:45 +0100 Subject: [PATCH] Fix php list syntax issue --- src/Attendance/Admin/Api/AttendanceAdminManager.php | 2 +- src/Classes/RestEndPoint.php | 2 +- src/Employees/Admin/Api/EmployeesAdminManager.php | 2 +- src/Employees/Rest/EmployeeRestEndPoint.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Attendance/Admin/Api/AttendanceAdminManager.php b/src/Attendance/Admin/Api/AttendanceAdminManager.php index 42f0c178..2bfe2d86 100644 --- a/src/Attendance/Admin/Api/AttendanceAdminManager.php +++ b/src/Attendance/Admin/Api/AttendanceAdminManager.php @@ -36,7 +36,7 @@ class AttendanceAdminManager extends AbstractModuleManager \Classes\Macaw::get(REST_API_PATH.'attendance', function ($pathParams) { $restEndPoint = new AttendanceRestEndPoint(); - $restEndPoint->process('list', $pathParams); + $restEndPoint->process('listAll', $pathParams); }); \Classes\Macaw::get(REST_API_PATH.'employee/(:num)/attendance', function ($pathParams) { diff --git a/src/Classes/RestEndPoint.php b/src/Classes/RestEndPoint.php index e10a68d9..e25b21b4 100644 --- a/src/Classes/RestEndPoint.php +++ b/src/Classes/RestEndPoint.php @@ -135,7 +135,7 @@ class RestEndPoint return $obj; } - public function list(User $user) + public function listAll(User $user) { return new IceResponse(IceResponse::ERROR, "Method not Implemented", 404); } diff --git a/src/Employees/Admin/Api/EmployeesAdminManager.php b/src/Employees/Admin/Api/EmployeesAdminManager.php index 1e1dc95f..0dc87e88 100644 --- a/src/Employees/Admin/Api/EmployeesAdminManager.php +++ b/src/Employees/Admin/Api/EmployeesAdminManager.php @@ -38,7 +38,7 @@ class EmployeesAdminManager extends AbstractModuleManager \Classes\Macaw::get(REST_API_PATH.'employees', function () { $empRestEndPoint = new EmployeeRestEndPoint(); - $empRestEndPoint->process('list'); + $empRestEndPoint->process('listAll'); }); \Classes\Macaw::post(REST_API_PATH.'employees', function () { diff --git a/src/Employees/Rest/EmployeeRestEndPoint.php b/src/Employees/Rest/EmployeeRestEndPoint.php index 891b578a..7f316693 100644 --- a/src/Employees/Rest/EmployeeRestEndPoint.php +++ b/src/Employees/Rest/EmployeeRestEndPoint.php @@ -20,7 +20,7 @@ class EmployeeRestEndPoint extends RestEndPoint return $obj; } - public function list(User $user) + public function listAll(User $user) { $query = new DataQuery('Employee');