@@ 23-43 (lines=21) @@ | ||
20 | ||
21 | use Surfnet\StepupMiddlewareClient\Service\ApiService; |
|
22 | ||
23 | class InstitutionConfigurationOptionsService |
|
24 | { |
|
25 | /** |
|
26 | * @var ApiService |
|
27 | */ |
|
28 | private $apiService; |
|
29 | ||
30 | public function __construct(ApiService $apiService) |
|
31 | { |
|
32 | $this->apiService = $apiService; |
|
33 | } |
|
34 | ||
35 | /** |
|
36 | * @param string $institution |
|
37 | * @return array |
|
38 | */ |
|
39 | public function getInstitutionConfigurationOptionsFor($institution) |
|
40 | { |
|
41 | return $this->apiService->read('/institution-configuration-options/%s', [$institution]); |
|
42 | } |
|
43 | } |
|
44 |
@@ 23-46 (lines=24) @@ | ||
20 | ||
21 | use Surfnet\StepupMiddlewareClient\Service\ApiService; |
|
22 | ||
23 | class RaService |
|
24 | { |
|
25 | /** |
|
26 | * @var ApiService |
|
27 | */ |
|
28 | private $apiService; |
|
29 | ||
30 | /** |
|
31 | * @param ApiService $apiService |
|
32 | */ |
|
33 | public function __construct(ApiService $apiService) |
|
34 | { |
|
35 | $this->apiService = $apiService; |
|
36 | } |
|
37 | ||
38 | /** |
|
39 | * @param string $institution |
|
40 | * @return array|null |
|
41 | */ |
|
42 | public function listRas($institution) |
|
43 | { |
|
44 | return $this->apiService->read('registration-authority?institution=%s', [$institution]); |
|
45 | } |
|
46 | } |
|
47 |