src/Surfnet/StepupMiddleware/ManagementBundle/Controller/ConfigurationController.php 1 location
|
@@ 56-68 (lines=13) @@
|
53 |
|
* @param Command $command |
54 |
|
* @return JsonResponse |
55 |
|
*/ |
56 |
|
private function handleCommand(Request $request, Command $command) |
57 |
|
{ |
58 |
|
$this->pipeline->process($command); |
59 |
|
|
60 |
|
$serverName = $request->server->get('SERVER_NAME') ?: $request->server->get('SERVER_ADDR'); |
61 |
|
$response = new JsonResponse([ |
62 |
|
'status' => 'OK', |
63 |
|
'processed_by' => $serverName, |
64 |
|
'applied_at' => (new DateTime())->format(DateTime::ISO8601) |
65 |
|
]); |
66 |
|
|
67 |
|
return $response; |
68 |
|
} |
69 |
|
} |
70 |
|
|
src/Surfnet/StepupMiddleware/ManagementBundle/Controller/RightToBeForgottenController.php 1 location
|
@@ 86-98 (lines=13) @@
|
83 |
|
* @param Command $command |
84 |
|
* @return JsonResponse |
85 |
|
*/ |
86 |
|
private function handleCommand(Request $request, Command $command) |
87 |
|
{ |
88 |
|
$this->pipeline->process($command); |
89 |
|
|
90 |
|
$serverName = $request->server->get('SERVER_NAME') ?: $request->server->get('SERVER_ADDR'); |
91 |
|
$response = new JsonResponse([ |
92 |
|
'status' => 'OK', |
93 |
|
'processed_by' => $serverName, |
94 |
|
'applied_at' => (new DateTime())->format(DateTime::ISO8601) |
95 |
|
]); |
96 |
|
|
97 |
|
return $response; |
98 |
|
} |
99 |
|
|
100 |
|
/** |
101 |
|
* @param NameId $nameId |