| @@ 144-150 (lines=7) @@ | ||
| 141 | /** |
|
| 142 | * Log unauthed protected controller action (403) |
|
| 143 | */ |
|
| 144 | if ($this->logger) { |
|
| 145 | $this->logger->addWarning('Unauthenticated attempt to access protected action', [ |
|
| 146 | 'path' => $request->getPath(), |
|
| 147 | 'controller' => $controller->getShortName(), |
|
| 148 | 'action' => $action |
|
| 149 | ]); |
|
| 150 | } |
|
| 151 | ||
| 152 | /** |
|
| 153 | * Save what controller and action was requested and then redirect to sign in form |
|
| @@ 166-172 (lines=7) @@ | ||
| 163 | /** |
|
| 164 | * Log unauthed private controller action (403) |
|
| 165 | */ |
|
| 166 | if ($this->logger) { |
|
| 167 | $this->logger->addWarning('Unauthenticated attempt to access private action', [ |
|
| 168 | 'path' => $request->getPath(), |
|
| 169 | 'controller' => $controller->getShortName(), |
|
| 170 | 'action' => $action |
|
| 171 | ]); |
|
| 172 | } |
|
| 173 | ||
| 174 | $controller = $controllerFactory->create(NotFoundController::class); |
|
| 175 | $controller->setAction('index'); |
|
| @@ 180-186 (lines=7) @@ | ||
| 177 | /** |
|
| 178 | * Log nonexistent controller action |
|
| 179 | */ |
|
| 180 | if ($this->logger) { |
|
| 181 | $this->logger->addCritical('Controller action is nonexistent', [ |
|
| 182 | 'path' => $request->getPath(), |
|
| 183 | 'controller' => $controller->getShortName(), |
|
| 184 | 'action' => $action |
|
| 185 | ]); |
|
| 186 | } |
|
| 187 | ||
| 188 | $controller = $controllerFactory->create(NotFoundController::class); |
|
| 189 | $controller->setAction('index'); |
|