Skip to content

Instantly share code, notes, and snippets.

@makoru-hikage
Created August 25, 2017 00:55

Revisions

  1. makoru-hikage created this gist Aug 25, 2017.
    19 changes: 19 additions & 0 deletions someRandomSnippet.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    <?php

    public function getChecklist($request, $response, $urlParams){

    $input = $request->getQueryParams();
    $input['student_number'] = $urlParams['student_number'];

    $output = (new MultipleReadModule ($input))
    ->setRepository(new CentralRepository)
    ->setModelService('DeltaX\Aegis\ModelServices\GradesRegistry\StudentChecklist')
    ->setUserIdentity('DeltaX\Aegis\ModelServices\UserManagement\StudentIdentity')
    ->setIdentityValue($input['student_number'])
    ->setValidationSet(new ChecklistSearchValidation)
    ->setAuthenticationAdapter($this->app->auth)
    ->run();

    return $response->withJson($output['data'], $output['code']);

    }