if (!$mask) {
file_put_contents($pathname, $message . "\n", FILE_APPEND);
/var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php, line 142 Cake\Log\Engine\FileLog->log() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Log/Log.php, line 392 Cake\Log\Log::write() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Log/Log.php, line 509 Cake\Log\Log::debug() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/src/Controller/AppController.php, line 86 App\Controller\AppController->initialize() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/src/Controller/IncidentController.php, line 33 App\Controller\IncidentController->initialize() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Controller/Controller.php, line 242 Cake\Controller\Controller->__construct() [internal], line ?? ReflectionClass->newInstance() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 88 Cake\Controller\ControllerFactory->create() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 320 Cake\Http\BaseApplication->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 86 Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Middleware/CsrfProtectionMiddleware.php, line 166 Cake\Http\Middleware\CsrfProtectionMiddleware->process() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157 Cake\Http\Middleware\BodyParserMiddleware->process() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 189 Cake\Routing\Middleware\RoutingMiddleware->process() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php, line 68 Cake\Routing\Middleware\AssetMiddleware->process() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 149 Cake\Error\Middleware\ErrorHandlerMiddleware->process() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 67 Cake\Http\Runner->run() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Server.php, line 99 Cake\Http\Server->run() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/webroot/index.php, line 37 [main]
$success = $this->_File->ftruncate(0) &&
$this->_File->fwrite($contents) &&
$this->_File->fflush();
SplFileObject->fwrite() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php, line 142 Cake\Cache\Engine\FileEngine->set() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/I18n/TranslatorRegistry.php, line 211 Cake\I18n\TranslatorRegistry->get() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/I18n/TranslatorRegistry.php, line 255 Cake\I18n\TranslatorRegistry->createInstance() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/I18n/TranslatorRegistry.php, line 240 Cake\I18n\TranslatorRegistry->_getTranslator() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/I18n/TranslatorRegistry.php, line 210 Cake\I18n\TranslatorRegistry->get() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/I18n/I18n.php, line 148 Cake\I18n\I18n::getTranslator() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/I18n/functions.php, line 89 /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Controller/Component/AuthComponent.php /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Controller/Component/AuthComponent.php, line 463 Cake\Controller\Component\AuthComponent->_setDefaults() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Controller/Component/AuthComponent.php, line 276 Cake\Controller\Component\AuthComponent->authCheck() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Controller/Component/AuthComponent.php, line 248 Cake\Controller\Component\AuthComponent->startup() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Event/EventManager.php, line 309 Cake\Event\EventManager->_callListener() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Event/EventManager.php, line 286 Cake\Event\EventManager->dispatch() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Event/EventDispatcherTrait.php, line 92 Cake\Controller\Controller->dispatchEvent() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Controller/Controller.php, line 661 Cake\Controller\Controller->startupProcess() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 130 Cake\Controller\ControllerFactory->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 115 Cake\Controller\ControllerFactory->invoke() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 325 Cake\Http\BaseApplication->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 86 Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Middleware/CsrfProtectionMiddleware.php, line 166 Cake\Http\Middleware\CsrfProtectionMiddleware->process() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157 Cake\Http\Middleware\BodyParserMiddleware->process() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 189 Cake\Routing\Middleware\RoutingMiddleware->process() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php, line 68 Cake\Routing\Middleware\AssetMiddleware->process() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 149 Cake\Error\Middleware\ErrorHandlerMiddleware->process() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 67 Cake\Http\Runner->run() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Server.php, line 99 Cake\Http\Server->run() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/webroot/index.php, line 37 [main]
$success = $this->_File->ftruncate(0) &&
$this->_File->fwrite($contents) &&
$this->_File->fflush();
SplFileObject->fwrite() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php, line 142 Cake\Cache\Engine\FileEngine->set() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/I18n/TranslatorRegistry.php, line 211 Cake\I18n\TranslatorRegistry->get() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/I18n/I18n.php, line 148 Cake\I18n\I18n::getTranslator() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/I18n/functions.php, line 89 /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Controller/Component/AuthComponent.php /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Controller/Component/AuthComponent.php, line 463 Cake\Controller\Component\AuthComponent->_setDefaults() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Controller/Component/AuthComponent.php, line 276 Cake\Controller\Component\AuthComponent->authCheck() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Controller/Component/AuthComponent.php, line 248 Cake\Controller\Component\AuthComponent->startup() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Event/EventManager.php, line 309 Cake\Event\EventManager->_callListener() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Event/EventManager.php, line 286 Cake\Event\EventManager->dispatch() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Event/EventDispatcherTrait.php, line 92 Cake\Controller\Controller->dispatchEvent() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Controller/Controller.php, line 661 Cake\Controller\Controller->startupProcess() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 130 Cake\Controller\ControllerFactory->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 115 Cake\Controller\ControllerFactory->invoke() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 325 Cake\Http\BaseApplication->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 86 Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Middleware/CsrfProtectionMiddleware.php, line 166 Cake\Http\Middleware\CsrfProtectionMiddleware->process() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157 Cake\Http\Middleware\BodyParserMiddleware->process() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 189 Cake\Routing\Middleware\RoutingMiddleware->process() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php, line 68 Cake\Routing\Middleware\AssetMiddleware->process() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 149 Cake\Error\Middleware\ErrorHandlerMiddleware->process() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 67 Cake\Http\Runner->run() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Server.php, line 99 Cake\Http\Server->run() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/webroot/index.php, line 37 [main]
$message = "Unable to emit headers. Headers sent in file=$file line=$line";
trigger_error($message, E_USER_WARNING);
}
/var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 71 Cake\Http\ResponseEmitter->emit() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Server.php, line 137 Cake\Http\Server->emit() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/webroot/index.php, line 37 [main]
$reasonPhrase = $response->getReasonPhrase();
header(sprintf(
'HTTP/%s %d%s',
/var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 164 Cake\Http\ResponseEmitter->emitStatusLine() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 74 Cake\Http\ResponseEmitter->emit() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Server.php, line 137 Cake\Http\Server->emit() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/webroot/index.php, line 37 [main]
foreach ($values as $value) {
header(sprintf(
'%s: %s',
/var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 197 Cake\Http\ResponseEmitter->emitHeaders() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 75 Cake\Http\ResponseEmitter->emit() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Server.php, line 137 Cake\Http\Server->emit() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/webroot/index.php, line 37 [main]
CORE/src/Error/Renderer/HtmlErrorRenderer.php
on line 37
📋
$this->headerSentInfo['line'] |
|
); |
|
} |
|
|
|
throw new CakeException($message); |
|
} |
|
|
|
if (!is_array($name)) { |
|
$name = [$name => $value]; |
'element' => $options['element'], |
|
'params' => $options['params'], |
|
]; |
|
|
|
$this->session->write('Flash.' . $options['key'], $messages); |
|
} |
|
|
|
/** |
|
* Set an exception's message as flash message. |
{ |
|
if ($message instanceof Throwable) { |
|
$this->flash()->setExceptionMessage($message, $options); |
|
} else { |
|
$this->flash()->set($message, $options); |
|
} |
|
} |
|
|
|
/** |
if ($message === false) { |
|
return; |
|
} |
|
|
|
$this->Flash->set($message, $this->_config['flash']); |
|
} |
|
|
|
/** |
|
* If login was called during this request and the user was successfully |
return $result instanceof Response ? $result : null; |
|
} |
|
|
|
if (!$controller->getRequest()->is('ajax')) { |
|
$this->flash($this->_config['authError']); |
|
|
|
return $controller->redirect($this->_loginActionRedirectUrl()); |
|
} |
|
|
if (!$this->_getUser()) { |
|
if ($isLoginAction) { |
|
return null; |
|
} |
|
$result = $this->_unauthenticated($controller); |
|
if ($result instanceof Response) { |
|
$event->stopPropagation(); |
|
} |
|
|
* @return \Cake\Http\Response|null |
|
*/ |
|
public function startup(EventInterface $event): ?Response |
|
{ |
|
return $this->authCheck($event); |
|
} |
|
|
|
/** |
|
* Main execution method, handles initial authentication check and redirection |
protected function _callListener(callable $listener, EventInterface $event) |
|
{ |
|
$data = (array)$event->getData(); |
|
|
|
return $listener($event, ...array_values($data)); |
|
} |
|
|
|
/** |
|
* @inheritDoc |
foreach ($listeners as $listener) { |
|
if ($event->isStopped()) { |
|
break; |
|
} |
|
$result = $this->_callListener($listener['callable'], $event); |
|
if ($result === false) { |
|
$event->stopPropagation(); |
|
} |
|
if ($result !== null) { |
} |
|
|
|
/** @var \Cake\Event\EventInterface $event */ |
|
$event = new $this->_eventClass($name, $subject, $data); |
|
$this->getEventManager()->dispatch($event); |
|
|
|
return $event; |
|
} |
|
} |
$event = $this->dispatchEvent('Controller.initialize'); |
|
if ($event->getResult() instanceof ResponseInterface) { |
|
return $event->getResult(); |
|
} |
|
$event = $this->dispatchEvent('Controller.startup'); |
|
if ($event->getResult() instanceof ResponseInterface) { |
|
return $event->getResult(); |
|
} |
|
|
$controller = $this->controller; |
|
/** @psalm-suppress ArgumentTypeCoercion */ |
|
$controller->setRequest($request); |
|
|
|
$result = $controller->startupProcess(); |
|
if ($result instanceof ResponseInterface) { |
|
return $result; |
|
} |
|
|
|
|
return $runner->run($middlewareQueue, $controller->getRequest(), $this); |
|
} |
|
|
|
return $this->handle($controller->getRequest()); |
|
} |
|
|
|
/** |
|
* Invoke the action. |
|
|
// This is needed for auto-wiring. Should be removed in 5.x |
|
$container->add(ComponentRegistry::class, $controller->components()); |
|
|
|
return $this->controllerFactory->invoke($controller); |
|
} |
|
} |
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
|
} |
|
|
|
return new Response([ |
|
'body' => 'Middleware queue was exhausted without returning a response ' |
if ($method === 'GET' && $cookieData === null) { |
|
$token = $this->createToken(); |
|
$request = $request->withAttribute('csrfToken', $this->saltToken($token)); |
|
/** @var mixed $response */ |
|
$response = $handler->handle($request); |
|
|
|
return $this->_addTokenCookie($token, $request, $response); |
|
} |
|
|
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
*/ |
|
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
{ |
|
if (!in_array($request->getMethod(), $this->methods, true)) { |
|
return $handler->handle($request); |
|
} |
|
[$type] = explode(';', $request->getHeaderLine('Content-Type')); |
|
$type = strtolower($type); |
|
if (!isset($this->parsers[$type])) { |
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
); |
|
} |
|
$matching = Router::getRouteCollection()->getMiddleware($middleware); |
|
if (!$matching) { |
|
return $handler->handle($request); |
|
} |
|
|
|
$container = $this->app instanceof ContainerApplicationInterface |
|
? $this->app->getContainer() |
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
{ |
|
$url = $request->getUri()->getPath(); |
|
if (strpos($url, '..') !== false || strpos($url, '.') === false) { |
|
return $handler->handle($request); |
|
} |
|
|
|
if (strpos($url, '/.') !== false) { |
|
return $handler->handle($request); |
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
*/ |
|
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
{ |
|
try { |
|
return $handler->handle($request); |
|
} catch (RedirectException $exception) { |
|
return $this->handleRedirect($exception); |
|
} catch (Throwable $exception) { |
|
return $this->handleException($exception, $request); |
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
) { |
|
Router::setRequest($request); |
|
} |
|
|
|
return $this->handle($request); |
|
} |
|
|
|
/** |
|
* Handle incoming server request and return a response. |
} |
|
|
|
$this->dispatchEvent('Server.buildMiddleware', ['middleware' => $middleware]); |
|
|
|
$response = $this->runner->run($middleware, $request, $this->app); |
|
|
|
if ($request instanceof ServerRequest) { |
|
$request->getSession()->close(); |
|
} |
$server = new Server(new Application(dirname(__DIR__) . '/config')); |
|
|
|
// Run the request/response through the application |
|
// and emit the response. |
|
$server->emit($server->run()); |
|
|
If you want to customize this error message, create templates/Error/error500.ctp