| @@ 153-159 (lines=7) @@ | ||
| 150 | /** |
|
| 151 | * Log unauthed protected controller action (403) |
|
| 152 | */ |
|
| 153 | if ($this->logger) { |
|
| 154 | $this->logger->addWarning('Unauthenticated attempt to access protected action', [ |
|
| 155 | 'path' => $request->getPath(), |
|
| 156 | 'controller' => $controller->getShortName(), |
|
| 157 | 'action' => $action |
|
| 158 | ]); |
|
| 159 | } |
|
| 160 | ||
| 161 | /** |
|
| 162 | * Save what controller and action was requested and then redirect to sign in form |
|
| @@ 173-179 (lines=7) @@ | ||
| 170 | /** |
|
| 171 | * Log unauthed private controller action (403) |
|
| 172 | */ |
|
| 173 | if ($this->logger) { |
|
| 174 | $this->logger->addWarning('Unauthenticated attempt to access private action', [ |
|
| 175 | 'path' => $request->getPath(), |
|
| 176 | 'controller' => $controller->getShortName(), |
|
| 177 | 'action' => $action |
|
| 178 | ]); |
|
| 179 | } |
|
| 180 | ||
| 181 | $controller = $controllerFactory->create(NotFoundController::class); |
|
| 182 | $controller->setAction('index'); |
|
| @@ 187-193 (lines=7) @@ | ||
| 184 | /** |
|
| 185 | * Log nonexistent controller action |
|
| 186 | */ |
|
| 187 | if ($this->logger) { |
|
| 188 | $this->logger->addCritical('Controller action is nonexistent', [ |
|
| 189 | 'path' => $request->getPath(), |
|
| 190 | 'controller' => $controller->getShortName(), |
|
| 191 | 'action' => $action |
|
| 192 | ]); |
|
| 193 | } |
|
| 194 | ||
| 195 | $controller = $controllerFactory->create(NotFoundController::class); |
|
| 196 | $controller->setAction('index'); |
|