Ivan - Add text editor to text area [skip ci]
This commit is contained in:
parent
8747326fca
commit
4f127b1d21
|
@ -1,9 +1,11 @@
|
|||
<?php
|
||||
require_once 'staff/get.php';
|
||||
require_once 'staff/assign.php';
|
||||
|
||||
$systemControllerGroup = new ControllerGroup();
|
||||
$systemControllerGroup->setGroupPath('/staff');
|
||||
|
||||
$systemControllerGroup->addController(new GetStaffController);
|
||||
$systemControllerGroup->addController(new AssignStaffController);
|
||||
|
||||
$systemControllerGroup->finalize();
|
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
use Respect\Validation\Validator as DataValidator;
|
||||
DataValidator::with('CustomValidations', true);
|
||||
|
||||
class AssignStaffController extends Controller {
|
||||
const PATH = '/assign';
|
||||
|
||||
public function validations() {
|
||||
return [
|
||||
'permission' => 'staff_1',
|
||||
'requestData' => [
|
||||
'ticketNumber' => [
|
||||
'validation' => DataValidator::validTicketNumber(),
|
||||
'error' => ERRORS::INVALID_TICKET
|
||||
]
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
public function handler() {
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue