Notice (1024)
: Undefined property `SitemapsController::$RequestHandler` in `/home/wknum/webapps/weeknumber/src/Controller/SitemapsController.php` on line 47 [in
/home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Controller/Controller.php, line
324]
Code
),
E_USER_NOTICE
);
/home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Controller/Controller.php /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Controller/Controller.php, line 324
Cake\Controller\Controller->__get() /home/wknum/webapps/weeknumber/src/Controller/SitemapsController.php, line 47
App\Controller\SitemapsController->index() /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Controller/Controller.php, line 503
Cake\Controller\Controller->invokeAction() /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 166
Cake\Controller\ControllerFactory->handle() /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 141
Cake\Controller\ControllerFactory->invoke() /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 362
Cake\Http\BaseApplication->handle() /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/Runner.php, line 86
Cake\Http\Runner->handle() /home/wknum/webapps/weeknumber/vendor/cakephp/authorization/src/Middleware/RequestAuthorizationMiddleware.php, line 110
Authorization\Middleware\RequestAuthorizationMiddleware->process() /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/wknum/webapps/weeknumber/vendor/cakephp/authorization/src/Middleware/AuthorizationMiddleware.php, line 136
Authorization\Middleware\AuthorizationMiddleware->process() /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/wknum/webapps/weeknumber/vendor/cakephp/authentication/src/Middleware/AuthenticationMiddleware.php, line 107
Authentication\Middleware\AuthenticationMiddleware->process() /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/Middleware/CsrfProtectionMiddleware.php, line 159
Cake\Http\Middleware\CsrfProtectionMiddleware->process() /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157
Cake\Http\Middleware\BodyParserMiddleware->process() /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 118
Cake\Routing\Middleware\RoutingMiddleware->process() /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php, line 78
Cake\Routing\Middleware\AssetMiddleware->process() /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 115
Cake\Error\Middleware\ErrorHandlerMiddleware->process() /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/Runner.php, line 60
Cake\Http\Runner->run() /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/Server.php, line 104
Cake\Http\Server->run() /home/wknum/webapps/weeknumber/webroot/index.php, line 37
[main]
Warning (512)
: Unable to emit headers. Headers sent in file=/home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php line=37 [in
/home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line
65]
Code
$message = "Unable to emit headers. Headers sent in file={$file} line={$line}";
trigger_error($message, E_USER_WARNING);
}
/home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 65
Cake\Http\ResponseEmitter->emit() /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/Server.php, line 148
Cake\Http\Server->emit() /home/wknum/webapps/weeknumber/webroot/index.php, line 37
[main]
Warning (2)
: Cannot modify header information - headers already sent by (output started at /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in
/home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line
163]
Code
$response->getStatusCode(),
($reasonPhrase ? ' ' . $reasonPhrase : '')
));
/home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 163
Cake\Http\ResponseEmitter->emitStatusLine() /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 68
Cake\Http\ResponseEmitter->emit() /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/Server.php, line 148
Cake\Http\Server->emit() /home/wknum/webapps/weeknumber/webroot/index.php, line 37
[main]
Warning (2)
: Cannot modify header information - headers already sent by (output started at /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in
/home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line
192]
Code
foreach ($values as $value) {
header(sprintf(
'%s: %s',
/home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 192
Cake\Http\ResponseEmitter->emitHeaders() /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 69
Cake\Http\ResponseEmitter->emit() /home/wknum/webapps/weeknumber/vendor/cakephp/cakephp/src/Http/Server.php, line 148
Cake\Http\Server->emit() /home/wknum/webapps/weeknumber/webroot/index.php, line 37
[main]
Error in:
ROOT/src/Controller/SitemapsController.php, line 47
APP/Controller/SitemapsController.php at line 47
(edit)
|
*/ |
|
public function index() |
|
{ |
|
$this->viewBuilder()->setLayout('sitemap'); |
|
$this->RequestHandler->respondAs('xml'); |
|
|
|
//Manual Entries |
|
$modified = new FrozenTime('1 day ago'); |
|
|
-
|
* @return void |
|
*/ |
|
public function invokeAction(Closure $action, array $args): void |
|
{ |
|
$result = $action(...$args); |
|
if ($result !== null) { |
|
assert( |
|
$result instanceof Response, |
|
sprintf( |
Toggle Arguments
-
|
$args = $this->getActionArgs( |
|
$action, |
|
array_values((array)$controller->getRequest()->getParam('pass')) |
|
); |
|
$controller->invokeAction($action, $args); |
|
|
|
$result = $controller->shutdownProcess(); |
|
if ($result !== null) { |
|
return $result; |
Toggle Arguments
-
|
|
|
return $runner->run($middlewareQueue, $controller->getRequest(), $this); |
|
} |
|
|
|
return $this->handle($controller->getRequest()); |
|
} |
|
|
|
/** |
|
* Invoke the action. |
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
],
'controller' => 'Sitemaps',
'action' => 'index',
'plugin' => null,
'_matchedRoute' => '/sitemap.xml',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'wknum',
'HOME' => '/home/wknum',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_CONNECTING_IP' => '3.138.61.163',
'HTTP_X_FORWARDED_FOR' => '3.138.61.163',
'HTTP_CF_RAY' => '915a38fb8b2a1aeb-ORD',
'HTTP_HOST' => 'weeknumber.com.au',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'weeknumber.com.au',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '207.148.82.68',
'REMOTE_PORT' => '40680',
'REMOTE_ADDR' => '172.69.17.182',
'SERVER_SOFTWARE' => 'nginx/1.27.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/sitemap.xml',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'DOCUMENT_ROOT' => '/home/wknum/webapps/weeknumber/webroot',
'SCRIPT_FILENAME' => '/home/wknum/webapps/weeknumber/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1740177464.2787,
'REQUEST_TIME' => (int) 1740177464,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET',
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST',
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT',
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH',
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE',
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD',
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS',
],
'https' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #8
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'weeknumber.com.au'
private port => null
private path => '/sitemap.xml'
private query => ''
private fragment => ''
private uriString => 'https://weeknumber.com.au/sitemap.xml'
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
'csrfToken' => '3VH1Nipl791sI9gGmf5fG3SiJUlpRNQf9rZPaqwi6nwSSLX+Zuu63wAUN/bXhLF20hXgpTHhWWHf110KFQd4RQB24ivzreKIFsMTfVsiti3P0CtfzUPZSCAt18pW3InpNyVVle6xiEDkcdSRANc/Uw==',
'identity' => null,
'authentication' => object(CakeDC\Auth\Authentication\AuthenticationService) id:8 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:9 {
},
'authorization' => object(Authorization\AuthorizationService) id:10 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
-
|
} |
|
|
|
$controller = $this->controllerFactory->create($request); |
|
|
|
return $this->controllerFactory->invoke($controller); |
|
} |
|
} |
|
|
Toggle Arguments
object(App\Controller\SitemapsController) id:0 {
protected name => 'Sitemaps'
protected request => object(Cake\Http\ServerRequest) id:1 {
trustProxy => false
protected params => [
'' => [maximum depth reached],
]
protected data => [
'' => [maximum depth reached],
]
protected query => [
'' => [maximum depth reached],
]
protected cookies => [
'' => [maximum depth reached],
]
protected _environment => [
'' => [maximum depth reached],
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
'' => [maximum depth reached],
]
protected _detectors => [
'' => [maximum depth reached],
]
protected _detectorCache => [
'' => [maximum depth reached],
]
protected stream => object(Laminas\Diactoros\Stream) id:2 {
}
protected uri => object(Laminas\Diactoros\Uri) id:3 {
}
protected session => object(Cake\Http\Session) id:4 {
}
protected flash => object(Cake\Http\FlashMessage) id:5 {
}
protected attributes => [
'' => [maximum depth reached],
]
protected emulatedAttributes => [
'' => [maximum depth reached],
]
protected uploadedFiles => [
'' => [maximum depth reached],
]
protected protocol => null
protected requestTarget => null
}
protected response => object(Cake\Http\Response) id:6 {
'status' => (int) 200
'contentType' => 'text/html'
'headers' => [
'Content-Type' => [
'' => [maximum depth reached],
],
]
'file' => null
'fileRange' => [
]
'cookies' => object(Cake\Http\Cookie\CookieCollection) id:7 {
}
'cacheDirectives' => [
]
'body' => ''
}
protected paginate => [
]
protected autoRender => true
protected _components => object(Cake\Controller\ComponentRegistry) id:8 {
'_loaded' => [
(int) 0 => 'Flash',
(int) 1 => 'Content',
]
'_Controller' => object(App\Controller\SitemapsController) id: 0 {}
'container' => object(Cake\Core\Container) id:9 {
}
'_eventManager' => object(Cake\Event\EventManager) id:10 {
}
'_eventClass' => 'Cake\Event\Event'
}
protected plugin => null
protected middlewares => [
]
protected viewClasses => [
]
protected _eventManager => object(Cake\Event\EventManager) id: 10 {}
protected _eventClass => 'Cake\Event\Event'
protected defaultTable => 'Sitemaps'
protected _tableLocator => null
protected _viewBuilder => object(Cake\View\ViewBuilder) id:11 {
protected _templatePath => null
protected _template => null
protected _plugin => null
protected _theme => null
protected _layout => 'sitemap'
protected _autoLayout => true
protected _layoutPath => null
protected _name => null
protected _className => null
protected _options => [
'' => [maximum depth reached],
]
protected _helpers => [
'' => [maximum depth reached],
]
protected _vars => [
'' => [maximum depth reached],
]
}
}
-
|
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 ' |
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
],
'controller' => 'Sitemaps',
'action' => 'index',
'plugin' => null,
'_matchedRoute' => '/sitemap.xml',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'wknum',
'HOME' => '/home/wknum',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_CONNECTING_IP' => '3.138.61.163',
'HTTP_X_FORWARDED_FOR' => '3.138.61.163',
'HTTP_CF_RAY' => '915a38fb8b2a1aeb-ORD',
'HTTP_HOST' => 'weeknumber.com.au',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'weeknumber.com.au',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '207.148.82.68',
'REMOTE_PORT' => '40680',
'REMOTE_ADDR' => '172.69.17.182',
'SERVER_SOFTWARE' => 'nginx/1.27.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/sitemap.xml',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'DOCUMENT_ROOT' => '/home/wknum/webapps/weeknumber/webroot',
'SCRIPT_FILENAME' => '/home/wknum/webapps/weeknumber/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1740177464.2787,
'REQUEST_TIME' => (int) 1740177464,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET',
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST',
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT',
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH',
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE',
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD',
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS',
],
'https' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #8
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'weeknumber.com.au'
private port => null
private path => '/sitemap.xml'
private query => ''
private fragment => ''
private uriString => 'https://weeknumber.com.au/sitemap.xml'
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
'csrfToken' => '3VH1Nipl791sI9gGmf5fG3SiJUlpRNQf9rZPaqwi6nwSSLX+Zuu63wAUN/bXhLF20hXgpTHhWWHf110KFQd4RQB24ivzreKIFsMTfVsiti3P0CtfzUPZSCAt18pW3InpNyVVle6xiEDkcdSRANc/Uw==',
'identity' => null,
'authentication' => object(CakeDC\Auth\Authentication\AuthenticationService) id:8 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:9 {
},
'authorization' => object(Authorization\AuthorizationService) id:10 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
-
|
} catch (Exception $exception) { |
|
return $this->handleException($exception, $request, $this->getConfig('unauthorizedHandler')); |
|
} |
|
|
|
return $handler->handle($request); |
|
} |
|
} |
|
|
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
],
'controller' => 'Sitemaps',
'action' => 'index',
'plugin' => null,
'_matchedRoute' => '/sitemap.xml',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'wknum',
'HOME' => '/home/wknum',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_CONNECTING_IP' => '3.138.61.163',
'HTTP_X_FORWARDED_FOR' => '3.138.61.163',
'HTTP_CF_RAY' => '915a38fb8b2a1aeb-ORD',
'HTTP_HOST' => 'weeknumber.com.au',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'weeknumber.com.au',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '207.148.82.68',
'REMOTE_PORT' => '40680',
'REMOTE_ADDR' => '172.69.17.182',
'SERVER_SOFTWARE' => 'nginx/1.27.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/sitemap.xml',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'DOCUMENT_ROOT' => '/home/wknum/webapps/weeknumber/webroot',
'SCRIPT_FILENAME' => '/home/wknum/webapps/weeknumber/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1740177464.2787,
'REQUEST_TIME' => (int) 1740177464,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET',
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST',
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT',
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH',
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE',
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD',
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS',
],
'https' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #8
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'weeknumber.com.au'
private port => null
private path => '/sitemap.xml'
private query => ''
private fragment => ''
private uriString => 'https://weeknumber.com.au/sitemap.xml'
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
'csrfToken' => '3VH1Nipl791sI9gGmf5fG3SiJUlpRNQf9rZPaqwi6nwSSLX+Zuu63wAUN/bXhLF20hXgpTHhWWHf110KFQd4RQB24ivzreKIFsMTfVsiti3P0CtfzUPZSCAt18pW3InpNyVVle6xiEDkcdSRANc/Uw==',
'identity' => null,
'authentication' => object(CakeDC\Auth\Authentication\AuthenticationService) id:8 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:9 {
},
'authorization' => object(Authorization\AuthorizationService) id:10 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
-
|
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
],
'controller' => 'Sitemaps',
'action' => 'index',
'plugin' => null,
'_matchedRoute' => '/sitemap.xml',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'wknum',
'HOME' => '/home/wknum',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_CONNECTING_IP' => '3.138.61.163',
'HTTP_X_FORWARDED_FOR' => '3.138.61.163',
'HTTP_CF_RAY' => '915a38fb8b2a1aeb-ORD',
'HTTP_HOST' => 'weeknumber.com.au',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'weeknumber.com.au',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '207.148.82.68',
'REMOTE_PORT' => '40680',
'REMOTE_ADDR' => '172.69.17.182',
'SERVER_SOFTWARE' => 'nginx/1.27.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/sitemap.xml',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'DOCUMENT_ROOT' => '/home/wknum/webapps/weeknumber/webroot',
'SCRIPT_FILENAME' => '/home/wknum/webapps/weeknumber/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1740177464.2787,
'REQUEST_TIME' => (int) 1740177464,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET',
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST',
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT',
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH',
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE',
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD',
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS',
],
'https' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #8
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'weeknumber.com.au'
private port => null
private path => '/sitemap.xml'
private query => ''
private fragment => ''
private uriString => 'https://weeknumber.com.au/sitemap.xml'
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
'csrfToken' => '3VH1Nipl791sI9gGmf5fG3SiJUlpRNQf9rZPaqwi6nwSSLX+Zuu63wAUN/bXhLF20hXgpTHhWWHf110KFQd4RQB24ivzreKIFsMTfVsiti3P0CtfzUPZSCAt18pW3InpNyVVle6xiEDkcdSRANc/Uw==',
'identity' => null,
'authentication' => object(CakeDC\Auth\Authentication\AuthenticationService) id:8 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:9 {
},
'authorization' => object(Authorization\AuthorizationService) id:10 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object(Cake\Http\Runner) id:0 {
protected queue => object(Cake\Http\MiddlewareQueue) id:1 {
protected position => (int) 8
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/home/wknum/webapps/weeknumber/config/'
protected plugins => object(Cake\Core\PluginCollection) id:4 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:5 {
}
protected container => object(Cake\Core\Container) id: 2 {}
protected _eventManager => object(Cake\Event\EventManager) id:6 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
-
|
$request = $request->withAttribute($attribute, $identity); |
|
} |
|
|
|
try { |
|
$response = $handler->handle($request); |
|
|
|
if ($this->getConfig('requireAuthorizationCheck') && !$service->authorizationChecked()) { |
|
throw new AuthorizationRequiredException(['url' => $request->getRequestTarget()]); |
|
} |
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
],
'controller' => 'Sitemaps',
'action' => 'index',
'plugin' => null,
'_matchedRoute' => '/sitemap.xml',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'wknum',
'HOME' => '/home/wknum',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_CONNECTING_IP' => '3.138.61.163',
'HTTP_X_FORWARDED_FOR' => '3.138.61.163',
'HTTP_CF_RAY' => '915a38fb8b2a1aeb-ORD',
'HTTP_HOST' => 'weeknumber.com.au',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'weeknumber.com.au',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '207.148.82.68',
'REMOTE_PORT' => '40680',
'REMOTE_ADDR' => '172.69.17.182',
'SERVER_SOFTWARE' => 'nginx/1.27.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/sitemap.xml',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'DOCUMENT_ROOT' => '/home/wknum/webapps/weeknumber/webroot',
'SCRIPT_FILENAME' => '/home/wknum/webapps/weeknumber/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1740177464.2787,
'REQUEST_TIME' => (int) 1740177464,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET',
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST',
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT',
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH',
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE',
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD',
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS',
],
'https' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #8
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'weeknumber.com.au'
private port => null
private path => '/sitemap.xml'
private query => ''
private fragment => ''
private uriString => 'https://weeknumber.com.au/sitemap.xml'
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
'csrfToken' => '3VH1Nipl791sI9gGmf5fG3SiJUlpRNQf9rZPaqwi6nwSSLX+Zuu63wAUN/bXhLF20hXgpTHhWWHf110KFQd4RQB24ivzreKIFsMTfVsiti3P0CtfzUPZSCAt18pW3InpNyVVle6xiEDkcdSRANc/Uw==',
'identity' => null,
'authentication' => object(CakeDC\Auth\Authentication\AuthenticationService) id:8 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:9 {
},
'authorization' => object(Authorization\AuthorizationService) id:10 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
-
|
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
],
'controller' => 'Sitemaps',
'action' => 'index',
'plugin' => null,
'_matchedRoute' => '/sitemap.xml',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'wknum',
'HOME' => '/home/wknum',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_CONNECTING_IP' => '3.138.61.163',
'HTTP_X_FORWARDED_FOR' => '3.138.61.163',
'HTTP_CF_RAY' => '915a38fb8b2a1aeb-ORD',
'HTTP_HOST' => 'weeknumber.com.au',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'weeknumber.com.au',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '207.148.82.68',
'REMOTE_PORT' => '40680',
'REMOTE_ADDR' => '172.69.17.182',
'SERVER_SOFTWARE' => 'nginx/1.27.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/sitemap.xml',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'DOCUMENT_ROOT' => '/home/wknum/webapps/weeknumber/webroot',
'SCRIPT_FILENAME' => '/home/wknum/webapps/weeknumber/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1740177464.2787,
'REQUEST_TIME' => (int) 1740177464,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET',
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST',
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT',
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH',
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE',
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD',
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS',
],
'https' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #8
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'weeknumber.com.au'
private port => null
private path => '/sitemap.xml'
private query => ''
private fragment => ''
private uriString => 'https://weeknumber.com.au/sitemap.xml'
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
'csrfToken' => '3VH1Nipl791sI9gGmf5fG3SiJUlpRNQf9rZPaqwi6nwSSLX+Zuu63wAUN/bXhLF20hXgpTHhWWHf110KFQd4RQB24ivzreKIFsMTfVsiti3P0CtfzUPZSCAt18pW3InpNyVVle6xiEDkcdSRANc/Uw==',
'identity' => null,
'authentication' => object(CakeDC\Auth\Authentication\AuthenticationService) id:8 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:9 {
},
'authorization' => object(Authorization\AuthorizationService) id:10 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object(Cake\Http\Runner) id:0 {
protected queue => object(Cake\Http\MiddlewareQueue) id:1 {
protected position => (int) 8
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/home/wknum/webapps/weeknumber/config/'
protected plugins => object(Cake\Core\PluginCollection) id:4 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:5 {
}
protected container => object(Cake\Core\Container) id: 2 {}
protected _eventManager => object(Cake\Event\EventManager) id:6 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
-
|
$request = $request->withAttribute('authentication', $service); |
|
$request = $request->withAttribute('authenticationResult', $result); |
|
|
|
try { |
|
$response = $handler->handle($request); |
|
$authenticator = $service->getAuthenticationProvider(); |
|
|
|
if ($authenticator !== null && !$authenticator instanceof StatelessInterface) { |
|
/** |
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
],
'controller' => 'Sitemaps',
'action' => 'index',
'plugin' => null,
'_matchedRoute' => '/sitemap.xml',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'wknum',
'HOME' => '/home/wknum',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_CONNECTING_IP' => '3.138.61.163',
'HTTP_X_FORWARDED_FOR' => '3.138.61.163',
'HTTP_CF_RAY' => '915a38fb8b2a1aeb-ORD',
'HTTP_HOST' => 'weeknumber.com.au',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'weeknumber.com.au',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '207.148.82.68',
'REMOTE_PORT' => '40680',
'REMOTE_ADDR' => '172.69.17.182',
'SERVER_SOFTWARE' => 'nginx/1.27.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/sitemap.xml',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'DOCUMENT_ROOT' => '/home/wknum/webapps/weeknumber/webroot',
'SCRIPT_FILENAME' => '/home/wknum/webapps/weeknumber/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1740177464.2787,
'REQUEST_TIME' => (int) 1740177464,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET',
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST',
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT',
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH',
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE',
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD',
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS',
],
'https' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #8
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'weeknumber.com.au'
private port => null
private path => '/sitemap.xml'
private query => ''
private fragment => ''
private uriString => 'https://weeknumber.com.au/sitemap.xml'
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
'csrfToken' => '3VH1Nipl791sI9gGmf5fG3SiJUlpRNQf9rZPaqwi6nwSSLX+Zuu63wAUN/bXhLF20hXgpTHhWWHf110KFQd4RQB24ivzreKIFsMTfVsiti3P0CtfzUPZSCAt18pW3InpNyVVle6xiEDkcdSRANc/Uw==',
'identity' => null,
'authentication' => object(CakeDC\Auth\Authentication\AuthenticationService) id:8 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:9 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
-
|
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
],
'controller' => 'Sitemaps',
'action' => 'index',
'plugin' => null,
'_matchedRoute' => '/sitemap.xml',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'wknum',
'HOME' => '/home/wknum',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_CONNECTING_IP' => '3.138.61.163',
'HTTP_X_FORWARDED_FOR' => '3.138.61.163',
'HTTP_CF_RAY' => '915a38fb8b2a1aeb-ORD',
'HTTP_HOST' => 'weeknumber.com.au',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'weeknumber.com.au',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '207.148.82.68',
'REMOTE_PORT' => '40680',
'REMOTE_ADDR' => '172.69.17.182',
'SERVER_SOFTWARE' => 'nginx/1.27.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/sitemap.xml',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'DOCUMENT_ROOT' => '/home/wknum/webapps/weeknumber/webroot',
'SCRIPT_FILENAME' => '/home/wknum/webapps/weeknumber/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1740177464.2787,
'REQUEST_TIME' => (int) 1740177464,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET',
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST',
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT',
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH',
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE',
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD',
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS',
],
'https' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #8
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'weeknumber.com.au'
private port => null
private path => '/sitemap.xml'
private query => ''
private fragment => ''
private uriString => 'https://weeknumber.com.au/sitemap.xml'
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
'csrfToken' => '3VH1Nipl791sI9gGmf5fG3SiJUlpRNQf9rZPaqwi6nwSSLX+Zuu63wAUN/bXhLF20hXgpTHhWWHf110KFQd4RQB24ivzreKIFsMTfVsiti3P0CtfzUPZSCAt18pW3InpNyVVle6xiEDkcdSRANc/Uw==',
'identity' => null,
'authentication' => object(CakeDC\Auth\Authentication\AuthenticationService) id:8 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:9 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object(Cake\Http\Runner) id:0 {
protected queue => object(Cake\Http\MiddlewareQueue) id:1 {
protected position => (int) 8
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/home/wknum/webapps/weeknumber/config/'
protected plugins => object(Cake\Core\PluginCollection) id:4 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:5 {
}
protected container => object(Cake\Core\Container) id: 2 {}
protected _eventManager => object(Cake\Event\EventManager) id:6 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
-
|
|
|
if ($method === 'GET' && $cookieData === null) { |
|
$token = $this->createToken(); |
|
$request = $request->withAttribute('csrfToken', $this->saltToken($token)); |
|
$response = $handler->handle($request); |
|
|
|
return $this->_addTokenCookie($token, $request, $response); |
|
} |
|
|
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
],
'controller' => 'Sitemaps',
'action' => 'index',
'plugin' => null,
'_matchedRoute' => '/sitemap.xml',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'wknum',
'HOME' => '/home/wknum',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_CONNECTING_IP' => '3.138.61.163',
'HTTP_X_FORWARDED_FOR' => '3.138.61.163',
'HTTP_CF_RAY' => '915a38fb8b2a1aeb-ORD',
'HTTP_HOST' => 'weeknumber.com.au',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'weeknumber.com.au',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '207.148.82.68',
'REMOTE_PORT' => '40680',
'REMOTE_ADDR' => '172.69.17.182',
'SERVER_SOFTWARE' => 'nginx/1.27.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/sitemap.xml',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'DOCUMENT_ROOT' => '/home/wknum/webapps/weeknumber/webroot',
'SCRIPT_FILENAME' => '/home/wknum/webapps/weeknumber/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1740177464.2787,
'REQUEST_TIME' => (int) 1740177464,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET',
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST',
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT',
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH',
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE',
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD',
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS',
],
'https' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #8
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'weeknumber.com.au'
private port => null
private path => '/sitemap.xml'
private query => ''
private fragment => ''
private uriString => 'https://weeknumber.com.au/sitemap.xml'
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
'csrfToken' => '3VH1Nipl791sI9gGmf5fG3SiJUlpRNQf9rZPaqwi6nwSSLX+Zuu63wAUN/bXhLF20hXgpTHhWWHf110KFQd4RQB24ivzreKIFsMTfVsiti3P0CtfzUPZSCAt18pW3InpNyVVle6xiEDkcdSRANc/Uw==',
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
-
|
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
],
'controller' => 'Sitemaps',
'action' => 'index',
'plugin' => null,
'_matchedRoute' => '/sitemap.xml',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'wknum',
'HOME' => '/home/wknum',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_CONNECTING_IP' => '3.138.61.163',
'HTTP_X_FORWARDED_FOR' => '3.138.61.163',
'HTTP_CF_RAY' => '915a38fb8b2a1aeb-ORD',
'HTTP_HOST' => 'weeknumber.com.au',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'weeknumber.com.au',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '207.148.82.68',
'REMOTE_PORT' => '40680',
'REMOTE_ADDR' => '172.69.17.182',
'SERVER_SOFTWARE' => 'nginx/1.27.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/sitemap.xml',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'DOCUMENT_ROOT' => '/home/wknum/webapps/weeknumber/webroot',
'SCRIPT_FILENAME' => '/home/wknum/webapps/weeknumber/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1740177464.2787,
'REQUEST_TIME' => (int) 1740177464,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET',
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST',
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT',
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH',
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE',
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD',
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS',
],
'https' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #8
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'weeknumber.com.au'
private port => null
private path => '/sitemap.xml'
private query => ''
private fragment => ''
private uriString => 'https://weeknumber.com.au/sitemap.xml'
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
'csrfToken' => '3VH1Nipl791sI9gGmf5fG3SiJUlpRNQf9rZPaqwi6nwSSLX+Zuu63wAUN/bXhLF20hXgpTHhWWHf110KFQd4RQB24ivzreKIFsMTfVsiti3P0CtfzUPZSCAt18pW3InpNyVVle6xiEDkcdSRANc/Uw==',
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object(Cake\Http\Runner) id:0 {
protected queue => object(Cake\Http\MiddlewareQueue) id:1 {
protected position => (int) 8
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/home/wknum/webapps/weeknumber/config/'
protected plugins => object(Cake\Core\PluginCollection) id:4 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:5 {
}
protected container => object(Cake\Core\Container) id: 2 {}
protected _eventManager => object(Cake\Event\EventManager) id:6 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
-
|
*/ |
|
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])) { |
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
],
'controller' => 'Sitemaps',
'action' => 'index',
'plugin' => null,
'_matchedRoute' => '/sitemap.xml',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'wknum',
'HOME' => '/home/wknum',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_CONNECTING_IP' => '3.138.61.163',
'HTTP_X_FORWARDED_FOR' => '3.138.61.163',
'HTTP_CF_RAY' => '915a38fb8b2a1aeb-ORD',
'HTTP_HOST' => 'weeknumber.com.au',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'weeknumber.com.au',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '207.148.82.68',
'REMOTE_PORT' => '40680',
'REMOTE_ADDR' => '172.69.17.182',
'SERVER_SOFTWARE' => 'nginx/1.27.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/sitemap.xml',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'DOCUMENT_ROOT' => '/home/wknum/webapps/weeknumber/webroot',
'SCRIPT_FILENAME' => '/home/wknum/webapps/weeknumber/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1740177464.2787,
'REQUEST_TIME' => (int) 1740177464,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET',
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST',
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT',
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH',
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE',
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD',
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS',
],
'https' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #8
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'weeknumber.com.au'
private port => null
private path => '/sitemap.xml'
private query => ''
private fragment => ''
private uriString => 'https://weeknumber.com.au/sitemap.xml'
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
-
|
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
],
'controller' => 'Sitemaps',
'action' => 'index',
'plugin' => null,
'_matchedRoute' => '/sitemap.xml',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'wknum',
'HOME' => '/home/wknum',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_CONNECTING_IP' => '3.138.61.163',
'HTTP_X_FORWARDED_FOR' => '3.138.61.163',
'HTTP_CF_RAY' => '915a38fb8b2a1aeb-ORD',
'HTTP_HOST' => 'weeknumber.com.au',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'weeknumber.com.au',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '207.148.82.68',
'REMOTE_PORT' => '40680',
'REMOTE_ADDR' => '172.69.17.182',
'SERVER_SOFTWARE' => 'nginx/1.27.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/sitemap.xml',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'DOCUMENT_ROOT' => '/home/wknum/webapps/weeknumber/webroot',
'SCRIPT_FILENAME' => '/home/wknum/webapps/weeknumber/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1740177464.2787,
'REQUEST_TIME' => (int) 1740177464,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET',
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST',
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT',
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH',
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE',
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD',
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS',
],
'https' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #8
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'weeknumber.com.au'
private port => null
private path => '/sitemap.xml'
private query => ''
private fragment => ''
private uriString => 'https://weeknumber.com.au/sitemap.xml'
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object(Cake\Http\Runner) id:0 {
protected queue => object(Cake\Http\MiddlewareQueue) id:1 {
protected position => (int) 8
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/home/wknum/webapps/weeknumber/config/'
protected plugins => object(Cake\Core\PluginCollection) id:4 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:5 {
}
protected container => object(Cake\Core\Container) id: 2 {}
protected _eventManager => object(Cake\Event\EventManager) id:6 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
-
|
); |
|
} |
|
$matching = Router::getRouteCollection()->getMiddleware($middleware); |
|
if (!$matching) { |
|
return $handler->handle($request); |
|
} |
|
|
|
$container = $this->app instanceof ContainerApplicationInterface |
|
? $this->app->getContainer() |
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
],
'controller' => 'Sitemaps',
'action' => 'index',
'plugin' => null,
'_matchedRoute' => '/sitemap.xml',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'wknum',
'HOME' => '/home/wknum',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_CONNECTING_IP' => '3.138.61.163',
'HTTP_X_FORWARDED_FOR' => '3.138.61.163',
'HTTP_CF_RAY' => '915a38fb8b2a1aeb-ORD',
'HTTP_HOST' => 'weeknumber.com.au',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'weeknumber.com.au',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '207.148.82.68',
'REMOTE_PORT' => '40680',
'REMOTE_ADDR' => '172.69.17.182',
'SERVER_SOFTWARE' => 'nginx/1.27.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/sitemap.xml',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'DOCUMENT_ROOT' => '/home/wknum/webapps/weeknumber/webroot',
'SCRIPT_FILENAME' => '/home/wknum/webapps/weeknumber/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1740177464.2787,
'REQUEST_TIME' => (int) 1740177464,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET',
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST',
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT',
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH',
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE',
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD',
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS',
],
'https' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #8
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'weeknumber.com.au'
private port => null
private path => '/sitemap.xml'
private query => ''
private fragment => ''
private uriString => 'https://weeknumber.com.au/sitemap.xml'
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
-
|
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
],
'controller' => 'Sitemaps',
'action' => 'index',
'plugin' => null,
'_matchedRoute' => '/sitemap.xml',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'wknum',
'HOME' => '/home/wknum',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_CONNECTING_IP' => '3.138.61.163',
'HTTP_X_FORWARDED_FOR' => '3.138.61.163',
'HTTP_CF_RAY' => '915a38fb8b2a1aeb-ORD',
'HTTP_HOST' => 'weeknumber.com.au',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'weeknumber.com.au',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '207.148.82.68',
'REMOTE_PORT' => '40680',
'REMOTE_ADDR' => '172.69.17.182',
'SERVER_SOFTWARE' => 'nginx/1.27.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/sitemap.xml',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'DOCUMENT_ROOT' => '/home/wknum/webapps/weeknumber/webroot',
'SCRIPT_FILENAME' => '/home/wknum/webapps/weeknumber/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1740177464.2787,
'REQUEST_TIME' => (int) 1740177464,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET',
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST',
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT',
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH',
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE',
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD',
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS',
],
'https' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #8
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'weeknumber.com.au'
private port => null
private path => '/sitemap.xml'
private query => ''
private fragment => ''
private uriString => 'https://weeknumber.com.au/sitemap.xml'
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object(Cake\Http\Runner) id:0 {
protected queue => object(Cake\Http\MiddlewareQueue) id:1 {
protected position => (int) 8
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/home/wknum/webapps/weeknumber/config/'
protected plugins => object(Cake\Core\PluginCollection) id:4 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:5 {
}
protected container => object(Cake\Core\Container) id: 2 {}
protected _eventManager => object(Cake\Event\EventManager) id:6 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
-
|
} |
|
|
|
$assetFile = $this->_getAssetFile($url); |
|
if ($assetFile === null || !is_file($assetFile)) { |
|
return $handler->handle($request); |
|
} |
|
|
|
$file = new SplFileInfo($assetFile); |
|
$modifiedTime = $file->getMTime(); |
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => [
],
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'wknum',
'HOME' => '/home/wknum',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_CONNECTING_IP' => '3.138.61.163',
'HTTP_X_FORWARDED_FOR' => '3.138.61.163',
'HTTP_CF_RAY' => '915a38fb8b2a1aeb-ORD',
'HTTP_HOST' => 'weeknumber.com.au',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'weeknumber.com.au',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '207.148.82.68',
'REMOTE_PORT' => '40680',
'REMOTE_ADDR' => '172.69.17.182',
'SERVER_SOFTWARE' => 'nginx/1.27.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/sitemap.xml',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'DOCUMENT_ROOT' => '/home/wknum/webapps/weeknumber/webroot',
'SCRIPT_FILENAME' => '/home/wknum/webapps/weeknumber/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1740177464.2787,
'REQUEST_TIME' => (int) 1740177464,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET',
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST',
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT',
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH',
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE',
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD',
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS',
],
'https' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #8
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'weeknumber.com.au'
private port => null
private path => '/sitemap.xml'
private query => ''
private fragment => ''
private uriString => 'https://weeknumber.com.au/sitemap.xml'
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
-
|
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => [
],
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'wknum',
'HOME' => '/home/wknum',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_CONNECTING_IP' => '3.138.61.163',
'HTTP_X_FORWARDED_FOR' => '3.138.61.163',
'HTTP_CF_RAY' => '915a38fb8b2a1aeb-ORD',
'HTTP_HOST' => 'weeknumber.com.au',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'weeknumber.com.au',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '207.148.82.68',
'REMOTE_PORT' => '40680',
'REMOTE_ADDR' => '172.69.17.182',
'SERVER_SOFTWARE' => 'nginx/1.27.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/sitemap.xml',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'DOCUMENT_ROOT' => '/home/wknum/webapps/weeknumber/webroot',
'SCRIPT_FILENAME' => '/home/wknum/webapps/weeknumber/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1740177464.2787,
'REQUEST_TIME' => (int) 1740177464,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET',
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST',
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT',
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH',
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE',
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD',
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS',
],
'https' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #8
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'weeknumber.com.au'
private port => null
private path => '/sitemap.xml'
private query => ''
private fragment => ''
private uriString => 'https://weeknumber.com.au/sitemap.xml'
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object(Cake\Http\Runner) id:0 {
protected queue => object(Cake\Http\MiddlewareQueue) id:1 {
protected position => (int) 8
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/home/wknum/webapps/weeknumber/config/'
protected plugins => object(Cake\Core\PluginCollection) id:4 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:5 {
}
protected container => object(Cake\Core\Container) id: 2 {}
protected _eventManager => object(Cake\Event\EventManager) id:6 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
-
|
*/ |
|
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, Router::getRequest() ?? $request); |
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => [
],
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'wknum',
'HOME' => '/home/wknum',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_CONNECTING_IP' => '3.138.61.163',
'HTTP_X_FORWARDED_FOR' => '3.138.61.163',
'HTTP_CF_RAY' => '915a38fb8b2a1aeb-ORD',
'HTTP_HOST' => 'weeknumber.com.au',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'weeknumber.com.au',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '207.148.82.68',
'REMOTE_PORT' => '40680',
'REMOTE_ADDR' => '172.69.17.182',
'SERVER_SOFTWARE' => 'nginx/1.27.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/sitemap.xml',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'DOCUMENT_ROOT' => '/home/wknum/webapps/weeknumber/webroot',
'SCRIPT_FILENAME' => '/home/wknum/webapps/weeknumber/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1740177464.2787,
'REQUEST_TIME' => (int) 1740177464,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET',
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST',
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT',
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH',
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE',
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD',
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS',
],
'https' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #8
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'weeknumber.com.au'
private port => null
private path => '/sitemap.xml'
private query => ''
private fragment => ''
private uriString => 'https://weeknumber.com.au/sitemap.xml'
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
-
|
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => [
],
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'wknum',
'HOME' => '/home/wknum',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_CONNECTING_IP' => '3.138.61.163',
'HTTP_X_FORWARDED_FOR' => '3.138.61.163',
'HTTP_CF_RAY' => '915a38fb8b2a1aeb-ORD',
'HTTP_HOST' => 'weeknumber.com.au',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'weeknumber.com.au',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '207.148.82.68',
'REMOTE_PORT' => '40680',
'REMOTE_ADDR' => '172.69.17.182',
'SERVER_SOFTWARE' => 'nginx/1.27.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/sitemap.xml',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'DOCUMENT_ROOT' => '/home/wknum/webapps/weeknumber/webroot',
'SCRIPT_FILENAME' => '/home/wknum/webapps/weeknumber/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1740177464.2787,
'REQUEST_TIME' => (int) 1740177464,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET',
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST',
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT',
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH',
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE',
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD',
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS',
],
'https' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #8
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'weeknumber.com.au'
private port => null
private path => '/sitemap.xml'
private query => ''
private fragment => ''
private uriString => 'https://weeknumber.com.au/sitemap.xml'
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object(Cake\Http\Runner) id:0 {
protected queue => object(Cake\Http\MiddlewareQueue) id:1 {
protected position => (int) 8
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/home/wknum/webapps/weeknumber/config/'
protected plugins => object(Cake\Core\PluginCollection) id:4 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:5 {
}
protected container => object(Cake\Core\Container) id: 2 {}
protected _eventManager => object(Cake\Event\EventManager) id:6 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
-
|
$this->queue = $queue; |
|
$this->queue->rewind(); |
|
$this->fallbackHandler = $fallbackHandler; |
|
|
|
return $this->handle($request); |
|
} |
|
|
|
/** |
|
* Handle incoming server request and return a response. |
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => [
],
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'wknum',
'HOME' => '/home/wknum',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_CONNECTING_IP' => '3.138.61.163',
'HTTP_X_FORWARDED_FOR' => '3.138.61.163',
'HTTP_CF_RAY' => '915a38fb8b2a1aeb-ORD',
'HTTP_HOST' => 'weeknumber.com.au',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'weeknumber.com.au',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '207.148.82.68',
'REMOTE_PORT' => '40680',
'REMOTE_ADDR' => '172.69.17.182',
'SERVER_SOFTWARE' => 'nginx/1.27.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/sitemap.xml',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'DOCUMENT_ROOT' => '/home/wknum/webapps/weeknumber/webroot',
'SCRIPT_FILENAME' => '/home/wknum/webapps/weeknumber/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1740177464.2787,
'REQUEST_TIME' => (int) 1740177464,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET',
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST',
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT',
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH',
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE',
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD',
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS',
],
'https' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #8
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'weeknumber.com.au'
private port => null
private path => '/sitemap.xml'
private query => ''
private fragment => ''
private uriString => 'https://weeknumber.com.au/sitemap.xml'
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
-
|
} |
|
|
|
$this->dispatchEvent('Server.buildMiddleware', ['middleware' => $middleware]); |
|
|
|
$response = $this->runner->run($middleware, $request, $this->app); |
|
|
|
if ($request instanceof ServerRequest) { |
|
$request->getSession()->close(); |
|
} |
Toggle Arguments
object(Cake\Http\MiddlewareQueue) id:0 {
protected position => (int) 8
protected queue => [
(int) 0 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) id:1 {
},
(int) 1 => object(Cake\Routing\Middleware\AssetMiddleware) id:2 {
},
(int) 2 => object(Cake\Routing\Middleware\RoutingMiddleware) id:3 {
},
(int) 3 => object(Cake\Http\Middleware\BodyParserMiddleware) id:4 {
},
(int) 4 => object(Cake\Http\Middleware\CsrfProtectionMiddleware) id:5 {
},
(int) 5 => object(Authentication\Middleware\AuthenticationMiddleware) id:6 {
},
(int) 6 => object(Authorization\Middleware\AuthorizationMiddleware) id:7 {
},
(int) 7 => object(Authorization\Middleware\RequestAuthorizationMiddleware) id:8 {
},
]
protected container => object(Cake\Core\Container) id:9 {
protected defaultToShared => false
protected definitions => object(League\Container\Definition\DefinitionAggregate) id:10 {
}
protected providers => object(League\Container\ServiceProvider\ServiceProviderAggregate) id:11 {
}
protected inflectors => object(League\Container\Inflector\InflectorAggregate) id:12 {
}
protected delegates => [
'' => [maximum depth reached],
]
}
}
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => [
],
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'wknum',
'HOME' => '/home/wknum',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_CONNECTING_IP' => '3.138.61.163',
'HTTP_X_FORWARDED_FOR' => '3.138.61.163',
'HTTP_CF_RAY' => '915a38fb8b2a1aeb-ORD',
'HTTP_HOST' => 'weeknumber.com.au',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'weeknumber.com.au',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '207.148.82.68',
'REMOTE_PORT' => '40680',
'REMOTE_ADDR' => '172.69.17.182',
'SERVER_SOFTWARE' => 'nginx/1.27.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/sitemap.xml',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'DOCUMENT_ROOT' => '/home/wknum/webapps/weeknumber/webroot',
'SCRIPT_FILENAME' => '/home/wknum/webapps/weeknumber/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1740177464.2787,
'REQUEST_TIME' => (int) 1740177464,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET',
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST',
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT',
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH',
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE',
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD',
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS',
],
'https' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #8
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'weeknumber.com.au'
private port => null
private path => '/sitemap.xml'
private query => ''
private fragment => ''
private uriString => 'https://weeknumber.com.au/sitemap.xml'
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object(App\Application) id:0 {
protected configDir => '/home/wknum/webapps/weeknumber/config/'
protected plugins => object(Cake\Core\PluginCollection) id:1 {
protected plugins => [
'' => [maximum depth reached],
]
protected names => [
'' => [maximum depth reached],
]
protected positions => [
'' => [maximum depth reached],
]
protected loopDepth => (int) -1
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:2 {
protected container => object(Cake\Core\Container) id:3 {
}
protected controller => object(App\Controller\SitemapsController) id:4 {
}
}
protected container => object(Cake\Core\Container) id: 3 {}
protected _eventManager => object(Cake\Event\EventManager) id:5 {
'_listeners' => [
]
'_isGlobal' => true
'_trackEvents' => false
'_generalManager' => '(object) EventManager'
'_dispatchedEvents' => null
}
protected _eventClass => 'Cake\Event\Event'
}
-
|
// Bind your application to the server. |
|
$server = new Server(new Application(dirname(__DIR__) . '/config')); |
|
|
|
// Run the request/response through the application and emit the response. |
|
$server->emit($server->run()); |
|
|
Toggle Arguments
-
If you want to customize this error message, create
templates/Error/error500.php