APP/Controller/ReportPagesController.php at line 42
(edit)
|
($lngId != 1)? 'ChildReportPages_title_translation.content IS NOT NULL' : '', |
|
'ChildReportPages.template !=' => 'blanc' |
|
]); |
|
}) |
|
->first()) throw new NotFoundException(); |
|
|
|
// get blank pages for breadcrumb |
|
$blankPages = $this->ReportPages->find('list', [ 'valueField' => 'url' ]) |
|
->where(['ReportPages.template' => 'blanc']) |
-
|
* @throws \UnexpectedValueException If return value of action is not `null` or `ResponseInterface` instance. |
|
*/ |
|
public function invokeAction(Closure $action, array $args): void |
|
{ |
|
$result = $action(...$args); |
|
if ($result !== null && !$result instanceof ResponseInterface) { |
|
throw new UnexpectedValueException(sprintf( |
|
'Controller actions can only return ResponseInterface instance or null. ' |
|
. 'Got %s instead.', |
Toggle Arguments
-
|
$args = $this->getActionArgs( |
|
$action, |
|
array_values((array)$controller->getRequest()->getParam('pass')) |
|
); |
|
$controller->invokeAction($action, $args); |
|
|
|
$result = $controller->shutdownProcess(); |
|
if ($result instanceof ResponseInterface) { |
|
return $result; |
Toggle Arguments
[
(int) 0 => 'glossary-items',
(int) 1 => 'index',
]
-
|
|
|
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 => [
'lang' => 'de_CH',
'pass' => [
(int) 0 => 'glossary-items',
(int) 1 => 'index',
],
'plugin' => false,
'controller' => 'ReportPages',
'action' => 'view',
'_matchedRoute' => '/{lang}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
'HTTP_X_REQUESTED_WITH' => null,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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 => [
'ajax' => false,
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(ADmad\I18n\Routing\Route\I18nRoute) id:8 {
},
'csrfToken' => 'FBl9Gwj+mp4zv/Byo5J8D3I4+U63ZmdWHNAEC/bDc5qg/RltH1T7NEFfcd48No9I7LMG0870N1eyNC0GuRWKGybpaA/YRejzQgqdfIFUX28q4zBqlKUV+MOcfFssZcgMJDoTu14PvS7YhDfk/8xTYw==',
'identity' => null,
'authentication' => object(CakeDC\Auth\Authentication\AuthenticationService) id:9 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:10 {
},
'authorization' => object(Authorization\AuthorizationService) id:11 {
},
]
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 is needed for auto-wiring. Should be removed in 5.x |
|
$container->add(ComponentRegistry::class, $controller->components()); |
|
|
|
return $this->controllerFactory->invoke($controller); |
|
} |
|
} |
|
|
Toggle Arguments
object(App\Controller\ReportPagesController) id:0 {
paginate => [
]
RequestHandler => object(Cake\Controller\Component\RequestHandlerComponent) id:1 {
'components' => [
]
'implementedEvents' => [
'Controller.startup' => 'startup',
'Controller.beforeRender' => 'beforeRender',
]
'_config' => [
'checkHttpCache' => true,
'viewClassMap' => [
'' => [maximum depth reached],
],
]
}
Flash => object(Cake\Controller\Component\FlashComponent) id:2 {
'components' => [
]
'implementedEvents' => [
]
'_config' => [
'key' => 'flash',
'element' => 'default',
'plugin' => null,
'params' => [
'' => [maximum depth reached],
],
'clear' => false,
'duplicate' => true,
]
}
Renderer => object(App\Controller\Component\RendererComponent) id:3 {
'components' => [
]
'implementedEvents' => [
]
'_config' => [
'layers' => [
'' => [maximum depth reached],
],
'type' => 'web',
]
}
protected name => 'ReportPages'
protected request => object(Cake\Http\ServerRequest) id:4 {
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\PhpInputStream) id:5 {
}
protected uri => object(Cake\Http\Uri) id:6 {
}
protected session => object(Cake\Http\Session) id:7 {
}
protected flash => object(Cake\Http\FlashMessage) id:8 {
}
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:9 {
'status' => (int) 200
'contentType' => 'text/html'
'headers' => [
'Content-Type' => [
'' => [maximum depth reached],
],
]
'file' => null
'fileRange' => [
]
'cookies' => object(Cake\Http\Cookie\CookieCollection) id:10 {
}
'cacheDirectives' => [
]
'body' => ''
}
protected autoRender => true
protected _components => object(Cake\Controller\ComponentRegistry) id:11 {
'_loaded' => [
(int) 0 => 'RequestHandler',
(int) 1 => 'Flash',
(int) 2 => 'Renderer',
]
'_Controller' => object(App\Controller\ReportPagesController) id: 0 {}
'_eventManager' => object(Cake\Event\EventManager) id:12 {
}
'_eventClass' => 'Cake\Event\Event'
}
protected plugin => null
protected middlewares => [
]
protected viewClasses => [
]
protected _eventManager => object(Cake\Event\EventManager) id: 12 {}
protected _eventClass => 'Cake\Event\Event'
protected defaultTable => 'ReportPages'
protected _tableLocator => object(Cake\ORM\Locator\TableLocator) id:13 {
protected locations => [
'' => [maximum depth reached],
]
protected _config => [
'' => [maximum depth reached],
]
protected instances => [
'' => [maximum depth reached],
]
protected _fallbacked => [
'' => [maximum depth reached],
]
protected fallbackClassName => 'Cake\ORM\Table'
protected allowFallbackClass => true
protected options => [
'' => [maximum depth reached],
]
}
protected modelClass => 'ReportPages'
protected _modelFactories => [
'Table' => [
(int) 0 => object(Cake\ORM\Locator\TableLocator) id: 13 {},
(int) 1 => 'get',
],
]
protected _modelType => 'Table'
protected _viewBuilder => object(Cake\View\ViewBuilder) id:14 {
protected _templatePath => null
protected _template => null
protected _plugin => null
protected _theme => null
protected _layout => null
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 => [
'lang' => 'de_CH',
'pass' => [
(int) 0 => 'glossary-items',
(int) 1 => 'index',
],
'plugin' => false,
'controller' => 'ReportPages',
'action' => 'view',
'_matchedRoute' => '/{lang}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
'HTTP_X_REQUESTED_WITH' => null,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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 => [
'ajax' => false,
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(ADmad\I18n\Routing\Route\I18nRoute) id:8 {
},
'csrfToken' => 'FBl9Gwj+mp4zv/Byo5J8D3I4+U63ZmdWHNAEC/bDc5qg/RltH1T7NEFfcd48No9I7LMG0870N1eyNC0GuRWKGybpaA/YRejzQgqdfIFUX28q4zBqlKUV+MOcfFssZcgMJDoTu14PvS7YhDfk/8xTYw==',
'identity' => null,
'authentication' => object(CakeDC\Auth\Authentication\AuthenticationService) id:9 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:10 {
},
'authorization' => object(Authorization\AuthorizationService) id:11 {
},
]
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 => [
'lang' => 'de_CH',
'pass' => [
(int) 0 => 'glossary-items',
(int) 1 => 'index',
],
'plugin' => false,
'controller' => 'ReportPages',
'action' => 'view',
'_matchedRoute' => '/{lang}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
'HTTP_X_REQUESTED_WITH' => null,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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 => [
'ajax' => false,
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(ADmad\I18n\Routing\Route\I18nRoute) id:8 {
},
'csrfToken' => 'FBl9Gwj+mp4zv/Byo5J8D3I4+U63ZmdWHNAEC/bDc5qg/RltH1T7NEFfcd48No9I7LMG0870N1eyNC0GuRWKGybpaA/YRejzQgqdfIFUX28q4zBqlKUV+MOcfFssZcgMJDoTu14PvS7YhDfk/8xTYw==',
'identity' => null,
'authentication' => object(CakeDC\Auth\Authentication\AuthenticationService) id:9 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:10 {
},
'authorization' => object(Authorization\AuthorizationService) id:11 {
},
]
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 => [
'lang' => 'de_CH',
'pass' => [
(int) 0 => 'glossary-items',
(int) 1 => 'index',
],
'plugin' => false,
'controller' => 'ReportPages',
'action' => 'view',
'_matchedRoute' => '/{lang}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
'HTTP_X_REQUESTED_WITH' => null,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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 => [
'ajax' => false,
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(ADmad\I18n\Routing\Route\I18nRoute) id:8 {
},
'csrfToken' => 'FBl9Gwj+mp4zv/Byo5J8D3I4+U63ZmdWHNAEC/bDc5qg/RltH1T7NEFfcd48No9I7LMG0870N1eyNC0GuRWKGybpaA/YRejzQgqdfIFUX28q4zBqlKUV+MOcfFssZcgMJDoTu14PvS7YhDfk/8xTYw==',
'identity' => null,
'authentication' => object(CakeDC\Auth\Authentication\AuthenticationService) id:9 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:10 {
},
'authorization' => object(Authorization\AuthorizationService) id:11 {
},
]
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) 14
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/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 => [
'lang' => 'de_CH',
'pass' => [
(int) 0 => 'glossary-items',
(int) 1 => 'index',
],
'plugin' => false,
'controller' => 'ReportPages',
'action' => 'view',
'_matchedRoute' => '/{lang}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
'HTTP_X_REQUESTED_WITH' => null,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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 => [
'ajax' => false,
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(ADmad\I18n\Routing\Route\I18nRoute) id:8 {
},
'csrfToken' => 'FBl9Gwj+mp4zv/Byo5J8D3I4+U63ZmdWHNAEC/bDc5qg/RltH1T7NEFfcd48No9I7LMG0870N1eyNC0GuRWKGybpaA/YRejzQgqdfIFUX28q4zBqlKUV+MOcfFssZcgMJDoTu14PvS7YhDfk/8xTYw==',
'identity' => null,
'authentication' => object(CakeDC\Auth\Authentication\AuthenticationService) id:9 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:10 {
},
'authorization' => object(Authorization\AuthorizationService) id:11 {
},
]
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 => [
'lang' => 'de_CH',
'pass' => [
(int) 0 => 'glossary-items',
(int) 1 => 'index',
],
'plugin' => false,
'controller' => 'ReportPages',
'action' => 'view',
'_matchedRoute' => '/{lang}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
'HTTP_X_REQUESTED_WITH' => null,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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 => [
'ajax' => false,
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(ADmad\I18n\Routing\Route\I18nRoute) id:8 {
},
'csrfToken' => 'FBl9Gwj+mp4zv/Byo5J8D3I4+U63ZmdWHNAEC/bDc5qg/RltH1T7NEFfcd48No9I7LMG0870N1eyNC0GuRWKGybpaA/YRejzQgqdfIFUX28q4zBqlKUV+MOcfFssZcgMJDoTu14PvS7YhDfk/8xTYw==',
'identity' => null,
'authentication' => object(CakeDC\Auth\Authentication\AuthenticationService) id:9 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:10 {
},
'authorization' => object(Authorization\AuthorizationService) id:11 {
},
]
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) 14
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/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) { |
|
$return = $service->persistIdentity($request, $response, $result->getData()); |
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'lang' => 'de_CH',
'pass' => [
(int) 0 => 'glossary-items',
(int) 1 => 'index',
],
'plugin' => false,
'controller' => 'ReportPages',
'action' => 'view',
'_matchedRoute' => '/{lang}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(ADmad\I18n\Routing\Route\I18nRoute) id:8 {
},
'csrfToken' => 'FBl9Gwj+mp4zv/Byo5J8D3I4+U63ZmdWHNAEC/bDc5qg/RltH1T7NEFfcd48No9I7LMG0870N1eyNC0GuRWKGybpaA/YRejzQgqdfIFUX28q4zBqlKUV+MOcfFssZcgMJDoTu14PvS7YhDfk/8xTYw==',
'identity' => null,
'authentication' => object(CakeDC\Auth\Authentication\AuthenticationService) id:9 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) 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 => [
'lang' => 'de_CH',
'pass' => [
(int) 0 => 'glossary-items',
(int) 1 => 'index',
],
'plugin' => false,
'controller' => 'ReportPages',
'action' => 'view',
'_matchedRoute' => '/{lang}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(ADmad\I18n\Routing\Route\I18nRoute) id:8 {
},
'csrfToken' => 'FBl9Gwj+mp4zv/Byo5J8D3I4+U63ZmdWHNAEC/bDc5qg/RltH1T7NEFfcd48No9I7LMG0870N1eyNC0GuRWKGybpaA/YRejzQgqdfIFUX28q4zBqlKUV+MOcfFssZcgMJDoTu14PvS7YhDfk/8xTYw==',
'identity' => null,
'authentication' => object(CakeDC\Auth\Authentication\AuthenticationService) id:9 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) 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) 14
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/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 |
|
{ |
|
$response = $handler->handle($request); |
|
$this->_init(); |
|
$this->_execRule($request, $response); |
|
|
|
return $response; |
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'lang' => 'de_CH',
'pass' => [
(int) 0 => 'glossary-items',
(int) 1 => 'index',
],
'plugin' => false,
'controller' => 'ReportPages',
'action' => 'view',
'_matchedRoute' => '/{lang}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(ADmad\I18n\Routing\Route\I18nRoute) id:8 {
},
'csrfToken' => 'FBl9Gwj+mp4zv/Byo5J8D3I4+U63ZmdWHNAEC/bDc5qg/RltH1T7NEFfcd48No9I7LMG0870N1eyNC0GuRWKGybpaA/YRejzQgqdfIFUX28q4zBqlKUV+MOcfFssZcgMJDoTu14PvS7YhDfk/8xTYw==',
]
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 => [
'lang' => 'de_CH',
'pass' => [
(int) 0 => 'glossary-items',
(int) 1 => 'index',
],
'plugin' => false,
'controller' => 'ReportPages',
'action' => 'view',
'_matchedRoute' => '/{lang}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(ADmad\I18n\Routing\Route\I18nRoute) id:8 {
},
'csrfToken' => 'FBl9Gwj+mp4zv/Byo5J8D3I4+U63ZmdWHNAEC/bDc5qg/RltH1T7NEFfcd48No9I7LMG0870N1eyNC0GuRWKGybpaA/YRejzQgqdfIFUX28q4zBqlKUV+MOcfFssZcgMJDoTu14PvS7YhDfk/8xTYw==',
]
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) 14
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/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->_init(); |
|
$this->_execRule($request); |
|
|
|
return $handler->handle($request); |
|
} |
|
|
|
protected function _init() |
|
{ |
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'lang' => 'de_CH',
'pass' => [
(int) 0 => 'glossary-items',
(int) 1 => 'index',
],
'plugin' => false,
'controller' => 'ReportPages',
'action' => 'view',
'_matchedRoute' => '/{lang}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(ADmad\I18n\Routing\Route\I18nRoute) id:8 {
},
'csrfToken' => 'FBl9Gwj+mp4zv/Byo5J8D3I4+U63ZmdWHNAEC/bDc5qg/RltH1T7NEFfcd48No9I7LMG0870N1eyNC0GuRWKGybpaA/YRejzQgqdfIFUX28q4zBqlKUV+MOcfFssZcgMJDoTu14PvS7YhDfk/8xTYw==',
]
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 => [
'lang' => 'de_CH',
'pass' => [
(int) 0 => 'glossary-items',
(int) 1 => 'index',
],
'plugin' => false,
'controller' => 'ReportPages',
'action' => 'view',
'_matchedRoute' => '/{lang}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(ADmad\I18n\Routing\Route\I18nRoute) id:8 {
},
'csrfToken' => 'FBl9Gwj+mp4zv/Byo5J8D3I4+U63ZmdWHNAEC/bDc5qg/RltH1T7NEFfcd48No9I7LMG0870N1eyNC0GuRWKGybpaA/YRejzQgqdfIFUX28q4zBqlKUV+MOcfFssZcgMJDoTu14PvS7YhDfk/8xTYw==',
]
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) 14
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/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->_validateToken($request); |
|
$request = $this->_unsetTokenField($request); |
|
} |
|
|
|
return $handler->handle($request); |
|
} |
|
|
|
/** |
|
* Set callback for allowing to skip token check for particular request. |
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'lang' => 'de_CH',
'pass' => [
(int) 0 => 'glossary-items',
(int) 1 => 'index',
],
'plugin' => false,
'controller' => 'ReportPages',
'action' => 'view',
'_matchedRoute' => '/{lang}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(ADmad\I18n\Routing\Route\I18nRoute) id:8 {
},
'csrfToken' => 'FBl9Gwj+mp4zv/Byo5J8D3I4+U63ZmdWHNAEC/bDc5qg/RltH1T7NEFfcd48No9I7LMG0870N1eyNC0GuRWKGybpaA/YRejzQgqdfIFUX28q4zBqlKUV+MOcfFssZcgMJDoTu14PvS7YhDfk/8xTYw==',
]
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 => [
'lang' => 'de_CH',
'pass' => [
(int) 0 => 'glossary-items',
(int) 1 => 'index',
],
'plugin' => false,
'controller' => 'ReportPages',
'action' => 'view',
'_matchedRoute' => '/{lang}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(ADmad\I18n\Routing\Route\I18nRoute) id:8 {
},
'csrfToken' => 'FBl9Gwj+mp4zv/Byo5J8D3I4+U63ZmdWHNAEC/bDc5qg/RltH1T7NEFfcd48No9I7LMG0870N1eyNC0GuRWKGybpaA/YRejzQgqdfIFUX28q4zBqlKUV+MOcfFssZcgMJDoTu14PvS7YhDfk/8xTYw==',
]
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) 14
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/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 |
|
{ |
|
$this->_execRule($request); |
|
return $handler->handle($request); |
|
} |
|
|
|
protected function _execRule($request) |
|
{ |
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'lang' => 'de_CH',
'pass' => [
(int) 0 => 'glossary-items',
(int) 1 => 'index',
],
'plugin' => false,
'controller' => 'ReportPages',
'action' => 'view',
'_matchedRoute' => '/{lang}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(ADmad\I18n\Routing\Route\I18nRoute) id:8 {
},
]
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 => [
'lang' => 'de_CH',
'pass' => [
(int) 0 => 'glossary-items',
(int) 1 => 'index',
],
'plugin' => false,
'controller' => 'ReportPages',
'action' => 'view',
'_matchedRoute' => '/{lang}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(ADmad\I18n\Routing\Route\I18nRoute) id:8 {
},
]
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) 14
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/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 => [
'lang' => 'de_CH',
'pass' => [
(int) 0 => 'glossary-items',
(int) 1 => 'index',
],
'plugin' => false,
'controller' => 'ReportPages',
'action' => 'view',
'_matchedRoute' => '/{lang}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(ADmad\I18n\Routing\Route\I18nRoute) id:8 {
},
]
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 => [
'lang' => 'de_CH',
'pass' => [
(int) 0 => 'glossary-items',
(int) 1 => 'index',
],
'plugin' => false,
'controller' => 'ReportPages',
'action' => 'view',
'_matchedRoute' => '/{lang}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(ADmad\I18n\Routing\Route\I18nRoute) id:8 {
},
]
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) 14
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/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'
}
}
-
|
} |
|
|
|
Configure::write('App.language', $lang); |
|
|
|
return $handler->handle($request); |
|
} |
|
|
|
/** |
|
* Set closure for deciding whether or not to ignore particular request. |
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'lang' => 'de_CH',
'pass' => [
(int) 0 => 'glossary-items',
(int) 1 => 'index',
],
'plugin' => false,
'controller' => 'ReportPages',
'action' => 'view',
'_matchedRoute' => '/{lang}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(ADmad\I18n\Routing\Route\I18nRoute) id:8 {
},
]
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 => [
'lang' => 'de_CH',
'pass' => [
(int) 0 => 'glossary-items',
(int) 1 => 'index',
],
'plugin' => false,
'controller' => 'ReportPages',
'action' => 'view',
'_matchedRoute' => '/{lang}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(ADmad\I18n\Routing\Route\I18nRoute) id:8 {
},
]
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) 14
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/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 => [
'lang' => 'de_CH',
'pass' => [
(int) 0 => 'glossary-items',
(int) 1 => 'index',
],
'plugin' => false,
'controller' => 'ReportPages',
'action' => 'view',
'_matchedRoute' => '/{lang}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(ADmad\I18n\Routing\Route\I18nRoute) id:8 {
},
]
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 => [
'lang' => 'de_CH',
'pass' => [
(int) 0 => 'glossary-items',
(int) 1 => 'index',
],
'plugin' => false,
'controller' => 'ReportPages',
'action' => 'view',
'_matchedRoute' => '/{lang}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(ADmad\I18n\Routing\Route\I18nRoute) id:8 {
},
]
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) 14
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/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 |
|
{ |
|
$url = $request->getUri()->getPath(); |
|
if (strpos($url, '..') !== false || strpos($url, '.') === false) { |
|
return $handler->handle($request); |
|
} |
|
|
|
if (strpos($url, '/.') !== false) { |
|
return $handler->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 => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
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 => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
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) 14
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/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, $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 => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
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 => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
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) 14
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/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 |
|
{ |
|
$response = $handler->handle($request); |
|
|
|
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') |
|
{ |
|
$response = $this->_setHeaders($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 => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
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 => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
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) 14
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/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 ($this->service->isEnabled()) { |
|
$this->service->loadPanels(); |
|
$this->service->initializePanels(); |
|
} |
|
$response = $handler->handle($request); |
|
|
|
if (!$this->service->isEnabled()) { |
|
return $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 => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
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 => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
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) 14
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/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'
}
}
-
|
) { |
|
Router::setRequest($request); |
|
} |
|
|
|
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 => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
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) 14
protected queue => [
(int) 0 => object(DebugKit\Middleware\DebugKitMiddleware) id:1 {
},
(int) 1 => object(Trois\Utils\Http\Middleware\CorsMiddleware) id:2 {
},
(int) 2 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) id:3 {
},
(int) 3 => object(Cake\Routing\Middleware\AssetMiddleware) id:4 {
},
(int) 4 => object(Cake\Routing\Middleware\RoutingMiddleware) id:5 {
},
(int) 5 => object(ADmad\I18n\Middleware\I18nMiddleware) id:6 {
},
(int) 6 => object(Cake\Http\Middleware\BodyParserMiddleware) id:7 {
},
(int) 7 => object(Trois\Utils\Http\Middleware\ModifyConfigureMiddleware) id:8 {
},
(int) 8 => object(Trois\Utils\Http\Middleware\CsrfProtectionMiddleware) id:9 {
},
(int) 9 => object(Trois\Utils\Http\Middleware\ClusterAliasMiddleware) id:10 {
},
(int) 10 => object(Trois\Utils\Http\Middleware\ResponseCacheMiddleware) id:11 {
},
(int) 11 => object(Authentication\Middleware\AuthenticationMiddleware) id:12 {
},
(int) 12 => object(Authorization\Middleware\AuthorizationMiddleware) id:13 {
},
(int) 13 => object(Authorization\Middleware\RequestAuthorizationMiddleware) id:14 {
},
]
protected container => object(Cake\Core\Container) id:15 {
protected defaultToShared => false
protected definitions => object(League\Container\Definition\DefinitionAggregate) id:16 {
}
protected providers => object(League\Container\ServiceProvider\ServiceProviderAggregate) id:17 {
}
protected inflectors => object(League\Container\Inflector\InflectorAggregate) id:18 {
}
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 => [
'$Version' => '1',
'csrfToken' => 'pi1QHbHrEIUVVph9e9eU/DAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ=',
'$Path' => '/',
'ar-2023' => '694ko72pmodlpo043o9h7n46ba',
'SameSite' => 'Lax',
]
protected _environment => [
'DOCUMENT_ROOT' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot',
'REMOTE_ADDR' => '127.0.0.1',
'REMOTE_PORT' => '52360',
'SERVER_SOFTWARE' => 'PHP 8.2.0 Development Server',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '8765',
'REQUEST_URI' => '/de_CH/glossary-items/index',
'REQUEST_METHOD' => 'GET',
'SCRIPT_NAME' => '/index.php',
'SCRIPT_FILENAME' => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/webroot/index.php',
'PATH_INFO' => '/de_CH/glossary-items/index',
'PHP_SELF' => '/index.php',
'HTTP_REFERER' => 'http://localhost:8765/fr_CH/glossaire',
'HTTP_COOKIE' => '$Version=1; csrfToken=pi1QHbHrEIUVVph9e9eU%2FDAyZDI2Mjg5NjM0YWJmZmJjYWU2MzEzOGVlYmViOTJmNDcxNzE4ZDQ%3D; $Path=/; ar-2023=694ko72pmodlpo043o9h7n46ba; $Path=/; SameSite=Lax; $Path=/',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => 'localhost:8765',
'HTTP_USER_AGENT' => 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)',
'HTTP_ACCEPT' => 'text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1',
'HTTP_ACCEPT_LANGUAGE' => 'en, *',
'HTTP_ACCEPT_ENCODING' => 'gzip, identity;q=0.9',
'REQUEST_TIME_FLOAT' => (float) 1750754919.1214,
'REQUEST_TIME' => (int) 1750754919,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'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\PhpInputStream) id:3 {
protected resource => (resource) Resource id #362
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Cake\Http\Uri) id:4 {
private base => ''
private webroot => '/'
private uri => object(Laminas\Diactoros\Uri) id:5 {
}
}
protected session => object(Cake\Http\Session) id:6 {
protected _engine => null
protected _started => true
protected _lifetime => (int) 259200
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:7 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 6 {}
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 => '/Users/arthur/Sites/localhost/ar-2023.compenswiss.ch/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\ReportPagesController) id:4 {
}
}
protected container => object(Cake\Core\Container) id: 3 {}
protected _eventManager => object(Cake\Event\EventManager) id:5 {
'_listeners' => [
'Error.beforeRender' => '1 listener(s)',
'Controller.shutdown' => '16 listener(s)',
'Controller.initialize' => '3 listener(s)',
'Controller.startup' => '3 listener(s)',
'Controller.beforeRender' => '4 listener(s)',
'View.beforeRender' => '2 listener(s)',
'View.afterRender' => '2 listener(s)',
'View.beforeLayout' => '2 listener(s)',
'View.afterLayout' => '2 listener(s)',
'View.beforeRenderFile' => '1 listener(s)',
'View.afterRenderFile' => '1 listener(s)',
]
'_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/error400.php