@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | |
| 115 | 115 | $this->get( |
| 116 | 116 | '/ccd/all-static', |
| 117 | - function (Request $request, UserInfoInterface $userInfo) { |
|
| 117 | + function (Request $request, UserInfoInterface $userInfo) { |
|
| 118 | 118 | // we typically deal with CNs, not user IDs, but the part of |
| 119 | 119 | // the CN before the first '_' is considered the user ID |
| 120 | 120 | $userId = $request->getUrl()->getQueryParameter('user_id'); |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | |
| 137 | 137 | $this->get( |
| 138 | 138 | '/ccd/static', |
| 139 | - function (Request $request, UserInfoInterface $userInfo) { |
|
| 139 | + function (Request $request, UserInfoInterface $userInfo) { |
|
| 140 | 140 | $commonName = $request->getUrl()->getQueryParameter('common_name'); |
| 141 | 141 | if (is_null($commonName)) { |
| 142 | 142 | throw new BadRequestException('missing common_name'); |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | |
| 160 | 160 | $this->post( |
| 161 | 161 | '/ccd/static', |
| 162 | - function (Request $request, UserInfoInterface $userInfo) { |
|
| 162 | + function (Request $request, UserInfoInterface $userInfo) { |
|
| 163 | 163 | $commonName = $request->getPostParameter('common_name'); |
| 164 | 164 | if (is_null($commonName)) { |
| 165 | 165 | throw new BadRequestException('missing common_name'); |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | { |
| 70 | 70 | $this->get( |
| 71 | 71 | '/status', |
| 72 | - function (Request $request) { |
|
| 72 | + function(Request $request) { |
|
| 73 | 73 | $response = new JsonResponse(); |
| 74 | 74 | $response->setBody($this->serverManager->status()); |
| 75 | 75 | |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | |
| 80 | 80 | $this->get( |
| 81 | 81 | '/load-stats', |
| 82 | - function (Request $request) { |
|
| 82 | + function(Request $request) { |
|
| 83 | 83 | $response = new JsonResponse(); |
| 84 | 84 | $response->setBody($this->serverManager->loadStats()); |
| 85 | 85 | |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | |
| 90 | 90 | $this->get( |
| 91 | 91 | '/version', |
| 92 | - function (Request $request) { |
|
| 92 | + function(Request $request) { |
|
| 93 | 93 | $response = new JsonResponse(); |
| 94 | 94 | $response->setBody($this->serverManager->version()); |
| 95 | 95 | |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | |
| 100 | 100 | $this->post( |
| 101 | 101 | '/kill', |
| 102 | - function (Request $request, UserInfoInterface $userInfo) { |
|
| 102 | + function(Request $request, UserInfoInterface $userInfo) { |
|
| 103 | 103 | $commonName = $request->getPostParameter('common_name'); |
| 104 | 104 | Utils::validateCommonName($commonName); |
| 105 | 105 | |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | |
| 115 | 115 | $this->get( |
| 116 | 116 | '/ccd/all-static', |
| 117 | - function (Request $request, UserInfoInterface $userInfo) { |
|
| 117 | + function(Request $request, UserInfoInterface $userInfo) { |
|
| 118 | 118 | // we typically deal with CNs, not user IDs, but the part of |
| 119 | 119 | // the CN before the first '_' is considered the user ID |
| 120 | 120 | $userId = $request->getUrl()->getQueryParameter('user_id'); |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | |
| 137 | 137 | $this->get( |
| 138 | 138 | '/ccd/static', |
| 139 | - function (Request $request, UserInfoInterface $userInfo) { |
|
| 139 | + function(Request $request, UserInfoInterface $userInfo) { |
|
| 140 | 140 | $commonName = $request->getUrl()->getQueryParameter('common_name'); |
| 141 | 141 | if (is_null($commonName)) { |
| 142 | 142 | throw new BadRequestException('missing common_name'); |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | |
| 160 | 160 | $this->post( |
| 161 | 161 | '/ccd/static', |
| 162 | - function (Request $request, UserInfoInterface $userInfo) { |
|
| 162 | + function(Request $request, UserInfoInterface $userInfo) { |
|
| 163 | 163 | $commonName = $request->getPostParameter('common_name'); |
| 164 | 164 | if (is_null($commonName)) { |
| 165 | 165 | throw new BadRequestException('missing common_name'); |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | |
| 192 | 192 | $this->post( |
| 193 | 193 | '/ccd/disable', |
| 194 | - function (Request $request, UserInfoInterface $userInfo) { |
|
| 194 | + function(Request $request, UserInfoInterface $userInfo) { |
|
| 195 | 195 | $commonName = $request->getPostParameter('common_name'); |
| 196 | 196 | if (is_null($commonName)) { |
| 197 | 197 | throw new BadRequestException('missing common_name'); |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | |
| 214 | 214 | $this->delete( |
| 215 | 215 | '/ccd/disable', |
| 216 | - function (Request $request, UserInfoInterface $userInfo) { |
|
| 216 | + function(Request $request, UserInfoInterface $userInfo) { |
|
| 217 | 217 | $commonName = $request->getUrl()->getQueryParameter('common_name'); |
| 218 | 218 | Utils::validateCommonName($commonName); |
| 219 | 219 | |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | |
| 233 | 233 | $this->get( |
| 234 | 234 | '/ccd/disable', |
| 235 | - function (Request $request, UserInfoInterface $userInfo) { |
|
| 235 | + function(Request $request, UserInfoInterface $userInfo) { |
|
| 236 | 236 | // we typically deal with CNs, not user IDs, but the part of |
| 237 | 237 | // the CN before the first '_' is considered the user ID |
| 238 | 238 | $userId = $request->getUrl()->getQueryParameter('user_id'); |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | |
| 255 | 255 | $this->post( |
| 256 | 256 | '/crl/fetch', |
| 257 | - function (Request $request, UserInfoInterface $userInfo) { |
|
| 257 | + function(Request $request, UserInfoInterface $userInfo) { |
|
| 258 | 258 | |
| 259 | 259 | $this->logInfo('fetching CRL', array('api_user' => $userInfo->getUserId())); |
| 260 | 260 | |
@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | |
| 268 | 268 | $this->get( |
| 269 | 269 | '/log/history', |
| 270 | - function (Request $request) { |
|
| 270 | + function(Request $request) { |
|
| 271 | 271 | $showDate = $request->getUrl()->getQueryParameter('showDate'); |
| 272 | 272 | if (is_null($showDate)) { |
| 273 | 273 | $showDate = date('Y-m-d', $this->io->getTime()); |