|
* @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.', |
|
$args = $this->getActionArgs( |
|
$action, |
|
array_values((array)$controller->getRequest()->getParam('pass')) |
|
); |
|
$controller->invokeAction($action, $args); |
|
|
|
$result = $controller->shutdownProcess(); |
|
if ($result instanceof ResponseInterface) { |
|
return $result; |
|
|
|
return $runner->run($middlewareQueue, $controller->getRequest(), $this); |
|
} |
|
|
|
return $this->handle($controller->getRequest()); |
|
} |
|
|
|
/** |
|
* Invoke the action. |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'controller' => 'Domains',
'action' => 'view',
'pass' => [
(int) 0 => '340000',
],
'plugin' => null,
'_matchedRoute' => '/{controller}/{action}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'csrfToken' => 'lZ/2HL+rpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU=',
]
protected _environment => [
'REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_STATUS' => '200',
'HTTP_X_FORWARDED_FOR' => '216.73.216.210',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_X_FORWARDED_PORT' => '443',
'HTTP_HOST' => 'test.phenxtoolkit.org',
'HTTP_X_AMZN_TRACE_ID' => 'Root=1-69a07811-59b7945b74354c942516f253',
'HTTP_ACCEPT' => '*/*',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_COOKIE' => 'csrfToken=lZ%2F2HL%2BrpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU%3D',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'SERVER_SIGNATURE' => '<address>Apache/2.4.56 (Debian) Server at test.phenxtoolkit.org Port 80</address>
',
'SERVER_SOFTWARE' => 'Apache/2.4.56 (Debian)',
'SERVER_NAME' => 'test.phenxtoolkit.org',
'SERVER_ADDR' => '172.18.0.2',
'SERVER_PORT' => '80',
'REMOTE_ADDR' => '172.31.47.167',
'DOCUMENT_ROOT' => '/var/www/html/cakephp',
'REQUEST_SCHEME' => 'http',
'CONTEXT_PREFIX' => '',
'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/cakephp',
'SERVER_ADMIN' => 'webmaster@localhost',
'SCRIPT_FILENAME' => '/var/www/html/cakephp/webroot/index.php',
'REMOTE_PORT' => '3332',
'REDIRECT_URL' => '/webroot/domains/view/340000',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'REQUEST_URI' => '/domains/view/340000',
'SCRIPT_NAME' => '/webroot/index.php',
'PHP_SELF' => '/webroot/index.php',
'REQUEST_TIME_FLOAT' => (float) 1772124177.3955,
'REQUEST_TIME' => (int) 1772124177,
'argv' => [
],
'argc' => (int) 0,
'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],
],
],
'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 {
},
'csv' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'csv',
],
]
protected _detectorCache => [
'ajax' => false,
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
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 => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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(Cake\Routing\Route\DashedRoute) id:8 {
},
'csrfToken' => 'pV04WHonil844xoPDTP7Srn5b9GhaEfviVs+yohUCWuosQNocCkxgutWLU6kV+HjDFSy6yUH8ewwws5ExYwvYQvZeB5BFslNgZwMtcBYJo25Pwr5vjE+Cs6CMQxBG1S70mAcd8Uy19dvYIrSR2TB2Q==',
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
|
} |
|
|
|
$controller = $this->controllerFactory->create($request); |
|
|
|
return $this->controllerFactory->invoke($controller); |
|
} |
|
} |
|
|
Arguments
object(App\Controller\DomainsController) 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,
]
}
Cookie => object(App\Controller\Component\CookieComponent) id:3 {
'components' => [
]
'implementedEvents' => [
]
'_config' => [
]
}
Auth => object(Cake\Controller\Component\AuthComponent) id:4 {
'components' => [
(int) 0 => 'RequestHandler',
(int) 1 => 'Flash',
]
'implementedEvents' => [
'Controller.initialize' => 'authCheck',
'Controller.startup' => 'startup',
]
'_config' => [
'authenticate' => [
'' => [maximum depth reached],
],
'authorize' => null,
'flash' => [
'' => [maximum depth reached],
],
'loginAction' => [
'' => [maximum depth reached],
],
'loginRedirect' => [
'' => [maximum depth reached],
],
'logoutRedirect' => [
'' => [maximum depth reached],
],
'authError' => 'Please Log In to access this feature. If you do not have an account, please Register.',
'unauthorizedRedirect' => true,
'storage' => 'Session',
'checkAuthIn' => 'Controller.startup',
]
}
Domains => object(App\Model\Table\DomainsTable) id:5 {
'registryAlias' => 'Domains'
'table' => 'domains'
'alias' => 'Domains'
'entityClass' => 'App\Model\Entity\Domain'
'associations' => [
(int) 0 => 'AdditionalProtocols',
(int) 1 => 'Collections',
(int) 2 => 'DomainScopes',
(int) 3 => 'Measures',
(int) 4 => 'SubCollections',
(int) 5 => 'SupplementalFiles',
(int) 6 => 'SupplementalXrefs',
(int) 7 => 'SurveyClusters',
]
'behaviors' => [
]
'defaultConnection' => 'default'
'connectionName' => 'default'
}
SubCollections => object(App\Model\Table\SubCollectionsTable) id:6 {
'registryAlias' => 'SubCollections'
'table' => 'sub_collections'
'alias' => 'SubCollections'
'entityClass' => 'App\Model\Entity\SubCollection'
'associations' => [
(int) 0 => 'Collections',
(int) 1 => 'Domains',
(int) 2 => 'CollectionProtocols',
]
'behaviors' => [
]
'defaultConnection' => 'default'
'connectionName' => 'default'
}
SiteMetrics => object(App\Model\Table\SiteMetricsTable) id:7 {
'registryAlias' => 'SiteMetrics'
'table' => 'site_metrics'
'alias' => 'SiteMetrics'
'entityClass' => 'App\Model\Entity\SiteMetric'
'associations' => [
(int) 0 => 'Users',
]
'behaviors' => [
]
'defaultConnection' => 'default'
'connectionName' => 'default'
}
Protocols => object(App\Model\Table\ProtocolsTable) id:8 {
'registryAlias' => 'Protocols'
'table' => 'protocols'
'alias' => 'Protocols'
'entityClass' => 'App\Model\Entity\Protocol'
'associations' => [
(int) 0 => 'Measures',
(int) 1 => 'ProtocolTypes',
(int) 2 => 'Modes',
(int) 3 => 'ModeAdministeredCategories',
(int) 4 => 'AdditionalProtocols',
(int) 5 => 'CollectionProtocols',
(int) 6 => 'CovidProtocols',
(int) 7 => 'LinkedProtocols',
(int) 8 => 'LiteratureReferences',
(int) 9 => 'NoteCollections',
(int) 10 => 'Notes',
(int) 11 => 'ProtocolHistories',
(int) 12 => 'ProtocolRationales',
(int) 13 => 'ProtocolRequirements',
(int) 14 => 'ProtocolStandards',
(int) 15 => 'RelatedProtocols',
(int) 16 => 'Surveys',
(int) 17 => 'VariableHistories',
(int) 18 => 'Variables',
(int) 19 => 'Keywords',
(int) 20 => 'Languages',
(int) 21 => 'Lifestages',
(int) 22 => 'MeshTerms',
(int) 23 => 'ProtocolAvailabilityTypes',
(int) 24 => 'RedcapInstitutes',
(int) 25 => 'Datasheets',
]
'behaviors' => [
]
'defaultConnection' => 'default'
'connectionName' => 'default'
}
Companies => object(App\Model\Table\CompaniesTable) id:9 {
'registryAlias' => 'Companies'
'table' => 'companies'
'alias' => 'Companies'
'entityClass' => 'App\Model\Entity\Company'
'associations' => [
(int) 0 => 'WorkingGroupMembers',
]
'behaviors' => [
]
'defaultConnection' => 'default'
'connectionName' => 'default'
}
WorkingGroups => object(App\Model\Table\WorkingGroupsTable) id:10 {
'registryAlias' => 'WorkingGroups'
'table' => 'working_groups'
'alias' => 'WorkingGroups'
'entityClass' => 'App\Model\Entity\WorkingGroup'
'associations' => [
(int) 0 => 'WorkingGroupMembersWorkingGroupRolesWorkingGroups',
]
'behaviors' => [
]
'defaultConnection' => 'default'
'connectionName' => 'default'
}
WorkingGroupMembersWorkingGroupRolesWorkingGroups => object(App\Model\Table\WorkingGroupMembersWorkingGroupRolesWorkingGroupsTable) id:11 {
'registryAlias' => 'WorkingGroupMembersWorkingGroupRolesWorkingGroups'
'table' => 'working_group_members_working_group_roles_working_groups'
'alias' => 'WorkingGroupMembersWorkingGroupRolesWorkingGroups'
'entityClass' => 'App\Model\Entity\WorkingGroupMembersWorkingGroupRolesWorkingGroup'
'associations' => [
(int) 0 => 'WorkingGroups',
(int) 1 => 'WorkingGroupMembers',
(int) 2 => 'WorkingGroupRoles',
]
'behaviors' => [
]
'defaultConnection' => 'default'
'connectionName' => 'default'
}
WorkingGroupRoles => object(App\Model\Table\WorkingGroupRolesTable) id:12 {
'registryAlias' => 'WorkingGroupRoles'
'table' => 'working_group_roles'
'alias' => 'WorkingGroupRoles'
'entityClass' => 'App\Model\Entity\WorkingGroupRole'
'associations' => [
(int) 0 => 'WorkingGroupMembersWorkingGroupRolesWorkingGroups',
]
'behaviors' => [
]
'defaultConnection' => 'default'
'connectionName' => 'default'
}
DomainScopes => object(App\Model\Table\DomainScopesTable) id:13 {
'registryAlias' => 'DomainScopes'
'table' => 'domain_scopes'
'alias' => 'DomainScopes'
'entityClass' => 'App\Model\Entity\DomainScope'
'associations' => [
(int) 0 => 'Domains',
]
'behaviors' => [
]
'defaultConnection' => 'default'
'connectionName' => 'default'
}
SupplementalFiles => object(App\Model\Table\SupplementalFilesTable) id:14 {
'registryAlias' => 'SupplementalFiles'
'table' => 'supplemental_files'
'alias' => 'SupplementalFiles'
'entityClass' => 'App\Model\Entity\SupplementalFile'
'associations' => [
(int) 0 => 'Domains',
(int) 1 => 'SupplementalFileCategories',
]
'behaviors' => [
]
'defaultConnection' => 'default'
'connectionName' => 'default'
}
Measures => object(App\Model\Table\MeasuresTable) id:15 {
'registryAlias' => 'Measures'
'table' => 'measures'
'alias' => 'Measures'
'entityClass' => 'App\Model\Entity\Measure'
'associations' => [
(int) 0 => 'Domains',
(int) 1 => 'FullTextIndexes',
(int) 2 => 'LinkedMeasures',
(int) 3 => 'LiteratureReferences',
(int) 4 => 'NoteCollections',
(int) 5 => 'ProtocolRationales',
(int) 6 => 'Protocols',
(int) 7 => 'RelatedMeasures',
]
'behaviors' => [
]
'defaultConnection' => 'default'
'connectionName' => 'default'
}
ProtocolRationales => object(App\Model\Table\ProtocolRationalesTable) id:16 {
'registryAlias' => 'ProtocolRationales'
'table' => 'protocol_rationales'
'alias' => 'ProtocolRationales'
'entityClass' => 'App\Model\Entity\ProtocolRationale'
'associations' => [
(int) 0 => 'Protocols',
(int) 1 => 'Measures',
]
'behaviors' => [
]
'defaultConnection' => 'default'
'connectionName' => 'default'
}
protected name => 'Domains'
protected request => object(Cake\Http\ServerRequest) id:17 {
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:18 {
}
protected uri => object(Cake\Http\Uri) id:19 {
}
protected session => object(Cake\Http\Session) id:20 {
}
protected flash => object(Cake\Http\FlashMessage) id:21 {
}
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:22 {
'status' => (int) 200
'contentType' => 'text/html'
'headers' => [
'Content-Type' => [
'' => [maximum depth reached],
],
]
'file' => null
'fileRange' => [
]
'cookies' => object(Cake\Http\Cookie\CookieCollection) id:23 {
}
'cacheDirectives' => [
]
'body' => ''
}
protected autoRender => true
protected _components => object(Cake\Controller\ComponentRegistry) id:24 {
'_Controller' => object(App\Controller\DomainsController) id: 0 {}
'_loaded' => [
(int) 0 => 'RequestHandler',
(int) 1 => 'Flash',
(int) 2 => 'Cookie',
(int) 3 => 'Auth',
]
'_eventManager' => object(Cake\Event\EventManager) id:25 {
}
'_eventClass' => 'Cake\Event\Event'
}
protected plugin => null
protected middlewares => [
]
protected _eventManager => object(Cake\Event\EventManager) id: 25 {}
protected _eventClass => 'Cake\Event\Event'
protected defaultTable => 'Domains'
protected _tableLocator => object(Cake\ORM\Locator\TableLocator) id:26 {
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 => false
protected options => [
'' => [maximum depth reached],
]
}
protected modelClass => 'Domains'
protected _modelFactories => [
'Table' => [
(int) 0 => object(Cake\ORM\Locator\TableLocator) id: 26 {},
(int) 1 => 'get',
],
]
protected _modelType => 'Table'
protected _viewBuilder => object(Cake\View\ViewBuilder) id:27 {
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 ' |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'controller' => 'Domains',
'action' => 'view',
'pass' => [
(int) 0 => '340000',
],
'plugin' => null,
'_matchedRoute' => '/{controller}/{action}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'csrfToken' => 'lZ/2HL+rpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU=',
]
protected _environment => [
'REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_STATUS' => '200',
'HTTP_X_FORWARDED_FOR' => '216.73.216.210',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_X_FORWARDED_PORT' => '443',
'HTTP_HOST' => 'test.phenxtoolkit.org',
'HTTP_X_AMZN_TRACE_ID' => 'Root=1-69a07811-59b7945b74354c942516f253',
'HTTP_ACCEPT' => '*/*',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_COOKIE' => 'csrfToken=lZ%2F2HL%2BrpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU%3D',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'SERVER_SIGNATURE' => '<address>Apache/2.4.56 (Debian) Server at test.phenxtoolkit.org Port 80</address>
',
'SERVER_SOFTWARE' => 'Apache/2.4.56 (Debian)',
'SERVER_NAME' => 'test.phenxtoolkit.org',
'SERVER_ADDR' => '172.18.0.2',
'SERVER_PORT' => '80',
'REMOTE_ADDR' => '172.31.47.167',
'DOCUMENT_ROOT' => '/var/www/html/cakephp',
'REQUEST_SCHEME' => 'http',
'CONTEXT_PREFIX' => '',
'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/cakephp',
'SERVER_ADMIN' => 'webmaster@localhost',
'SCRIPT_FILENAME' => '/var/www/html/cakephp/webroot/index.php',
'REMOTE_PORT' => '3332',
'REDIRECT_URL' => '/webroot/domains/view/340000',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'REQUEST_URI' => '/domains/view/340000',
'SCRIPT_NAME' => '/webroot/index.php',
'PHP_SELF' => '/webroot/index.php',
'REQUEST_TIME_FLOAT' => (float) 1772124177.3955,
'REQUEST_TIME' => (int) 1772124177,
'argv' => [
],
'argc' => (int) 0,
'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],
],
],
'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 {
},
'csv' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'csv',
],
]
protected _detectorCache => [
'ajax' => false,
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
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 => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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(Cake\Routing\Route\DashedRoute) id:8 {
},
'csrfToken' => 'pV04WHonil844xoPDTP7Srn5b9GhaEfviVs+yohUCWuosQNocCkxgutWLU6kV+HjDFSy6yUH8ewwws5ExYwvYQvZeB5BFslNgZwMtcBYJo25Pwr5vjE+Cs6CMQxBG1S70mAcd8Uy19dvYIrSR2TB2Q==',
]
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->_validateToken($request); |
|
$request = $this->_unsetTokenField($request); |
|
} |
|
|
|
return $handler->handle($request); |
|
} |
|
|
|
/** |
|
* Set callback for allowing to skip token check for particular request. |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'controller' => 'Domains',
'action' => 'view',
'pass' => [
(int) 0 => '340000',
],
'plugin' => null,
'_matchedRoute' => '/{controller}/{action}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'csrfToken' => 'lZ/2HL+rpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU=',
]
protected _environment => [
'REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_STATUS' => '200',
'HTTP_X_FORWARDED_FOR' => '216.73.216.210',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_X_FORWARDED_PORT' => '443',
'HTTP_HOST' => 'test.phenxtoolkit.org',
'HTTP_X_AMZN_TRACE_ID' => 'Root=1-69a07811-59b7945b74354c942516f253',
'HTTP_ACCEPT' => '*/*',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_COOKIE' => 'csrfToken=lZ%2F2HL%2BrpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU%3D',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'SERVER_SIGNATURE' => '<address>Apache/2.4.56 (Debian) Server at test.phenxtoolkit.org Port 80</address>
',
'SERVER_SOFTWARE' => 'Apache/2.4.56 (Debian)',
'SERVER_NAME' => 'test.phenxtoolkit.org',
'SERVER_ADDR' => '172.18.0.2',
'SERVER_PORT' => '80',
'REMOTE_ADDR' => '172.31.47.167',
'DOCUMENT_ROOT' => '/var/www/html/cakephp',
'REQUEST_SCHEME' => 'http',
'CONTEXT_PREFIX' => '',
'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/cakephp',
'SERVER_ADMIN' => 'webmaster@localhost',
'SCRIPT_FILENAME' => '/var/www/html/cakephp/webroot/index.php',
'REMOTE_PORT' => '3332',
'REDIRECT_URL' => '/webroot/domains/view/340000',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'REQUEST_URI' => '/domains/view/340000',
'SCRIPT_NAME' => '/webroot/index.php',
'PHP_SELF' => '/webroot/index.php',
'REQUEST_TIME_FLOAT' => (float) 1772124177.3955,
'REQUEST_TIME' => (int) 1772124177,
'argv' => [
],
'argc' => (int) 0,
'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],
],
],
'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 {
},
'csv' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'csv',
],
]
protected _detectorCache => [
'ajax' => false,
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
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 => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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(Cake\Routing\Route\DashedRoute) id:8 {
},
'csrfToken' => 'pV04WHonil844xoPDTP7Srn5b9GhaEfviVs+yohUCWuosQNocCkxgutWLU6kV+HjDFSy6yUH8ewwws5ExYwvYQvZeB5BFslNgZwMtcBYJo25Pwr5vjE+Cs6CMQxBG1S70mAcd8Uy19dvYIrSR2TB2Q==',
]
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); |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'controller' => 'Domains',
'action' => 'view',
'pass' => [
(int) 0 => '340000',
],
'plugin' => null,
'_matchedRoute' => '/{controller}/{action}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'csrfToken' => 'lZ/2HL+rpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU=',
]
protected _environment => [
'REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_STATUS' => '200',
'HTTP_X_FORWARDED_FOR' => '216.73.216.210',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_X_FORWARDED_PORT' => '443',
'HTTP_HOST' => 'test.phenxtoolkit.org',
'HTTP_X_AMZN_TRACE_ID' => 'Root=1-69a07811-59b7945b74354c942516f253',
'HTTP_ACCEPT' => '*/*',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_COOKIE' => 'csrfToken=lZ%2F2HL%2BrpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU%3D',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'SERVER_SIGNATURE' => '<address>Apache/2.4.56 (Debian) Server at test.phenxtoolkit.org Port 80</address>
',
'SERVER_SOFTWARE' => 'Apache/2.4.56 (Debian)',
'SERVER_NAME' => 'test.phenxtoolkit.org',
'SERVER_ADDR' => '172.18.0.2',
'SERVER_PORT' => '80',
'REMOTE_ADDR' => '172.31.47.167',
'DOCUMENT_ROOT' => '/var/www/html/cakephp',
'REQUEST_SCHEME' => 'http',
'CONTEXT_PREFIX' => '',
'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/cakephp',
'SERVER_ADMIN' => 'webmaster@localhost',
'SCRIPT_FILENAME' => '/var/www/html/cakephp/webroot/index.php',
'REMOTE_PORT' => '3332',
'REDIRECT_URL' => '/webroot/domains/view/340000',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'REQUEST_URI' => '/domains/view/340000',
'SCRIPT_NAME' => '/webroot/index.php',
'PHP_SELF' => '/webroot/index.php',
'REQUEST_TIME_FLOAT' => (float) 1772124177.3955,
'REQUEST_TIME' => (int) 1772124177,
'argv' => [
],
'argc' => (int) 0,
'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],
],
],
'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 {
},
'csv' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'csv',
],
]
protected _detectorCache => [
'ajax' => false,
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
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 => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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(Cake\Routing\Route\DashedRoute) id:8 {
},
'csrfToken' => 'pV04WHonil844xoPDTP7Srn5b9GhaEfviVs+yohUCWuosQNocCkxgutWLU6kV+HjDFSy6yUH8ewwws5ExYwvYQvZeB5BFslNgZwMtcBYJo25Pwr5vjE+Cs6CMQxBG1S70mAcd8Uy19dvYIrSR2TB2Q==',
]
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) 5
protected queue => [
'' => [maximum depth reached],
]
}
protected fallbackHandler => object(App\Application) id:2 {
protected configDir => '/var/www/html/cakephp/config/'
protected plugins => object(Cake\Core\PluginCollection) id:3 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:4 {
}
protected container => object(Cake\Core\Container) id:5 {
}
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])) { |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'controller' => 'Domains',
'action' => 'view',
'pass' => [
(int) 0 => '340000',
],
'plugin' => null,
'_matchedRoute' => '/{controller}/{action}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'csrfToken' => 'lZ/2HL+rpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU=',
]
protected _environment => [
'REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_STATUS' => '200',
'HTTP_X_FORWARDED_FOR' => '216.73.216.210',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_X_FORWARDED_PORT' => '443',
'HTTP_HOST' => 'test.phenxtoolkit.org',
'HTTP_X_AMZN_TRACE_ID' => 'Root=1-69a07811-59b7945b74354c942516f253',
'HTTP_ACCEPT' => '*/*',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_COOKIE' => 'csrfToken=lZ%2F2HL%2BrpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU%3D',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'SERVER_SIGNATURE' => '<address>Apache/2.4.56 (Debian) Server at test.phenxtoolkit.org Port 80</address>
',
'SERVER_SOFTWARE' => 'Apache/2.4.56 (Debian)',
'SERVER_NAME' => 'test.phenxtoolkit.org',
'SERVER_ADDR' => '172.18.0.2',
'SERVER_PORT' => '80',
'REMOTE_ADDR' => '172.31.47.167',
'DOCUMENT_ROOT' => '/var/www/html/cakephp',
'REQUEST_SCHEME' => 'http',
'CONTEXT_PREFIX' => '',
'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/cakephp',
'SERVER_ADMIN' => 'webmaster@localhost',
'SCRIPT_FILENAME' => '/var/www/html/cakephp/webroot/index.php',
'REMOTE_PORT' => '3332',
'REDIRECT_URL' => '/webroot/domains/view/340000',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'REQUEST_URI' => '/domains/view/340000',
'SCRIPT_NAME' => '/webroot/index.php',
'PHP_SELF' => '/webroot/index.php',
'REQUEST_TIME_FLOAT' => (float) 1772124177.3955,
'REQUEST_TIME' => (int) 1772124177,
'argv' => [
],
'argc' => (int) 0,
'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],
],
],
'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 {
},
'csv' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'csv',
],
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
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 => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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(Cake\Routing\Route\DashedRoute) 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); |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'controller' => 'Domains',
'action' => 'view',
'pass' => [
(int) 0 => '340000',
],
'plugin' => null,
'_matchedRoute' => '/{controller}/{action}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'csrfToken' => 'lZ/2HL+rpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU=',
]
protected _environment => [
'REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_STATUS' => '200',
'HTTP_X_FORWARDED_FOR' => '216.73.216.210',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_X_FORWARDED_PORT' => '443',
'HTTP_HOST' => 'test.phenxtoolkit.org',
'HTTP_X_AMZN_TRACE_ID' => 'Root=1-69a07811-59b7945b74354c942516f253',
'HTTP_ACCEPT' => '*/*',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_COOKIE' => 'csrfToken=lZ%2F2HL%2BrpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU%3D',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'SERVER_SIGNATURE' => '<address>Apache/2.4.56 (Debian) Server at test.phenxtoolkit.org Port 80</address>
',
'SERVER_SOFTWARE' => 'Apache/2.4.56 (Debian)',
'SERVER_NAME' => 'test.phenxtoolkit.org',
'SERVER_ADDR' => '172.18.0.2',
'SERVER_PORT' => '80',
'REMOTE_ADDR' => '172.31.47.167',
'DOCUMENT_ROOT' => '/var/www/html/cakephp',
'REQUEST_SCHEME' => 'http',
'CONTEXT_PREFIX' => '',
'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/cakephp',
'SERVER_ADMIN' => 'webmaster@localhost',
'SCRIPT_FILENAME' => '/var/www/html/cakephp/webroot/index.php',
'REMOTE_PORT' => '3332',
'REDIRECT_URL' => '/webroot/domains/view/340000',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'REQUEST_URI' => '/domains/view/340000',
'SCRIPT_NAME' => '/webroot/index.php',
'PHP_SELF' => '/webroot/index.php',
'REQUEST_TIME_FLOAT' => (float) 1772124177.3955,
'REQUEST_TIME' => (int) 1772124177,
'argv' => [
],
'argc' => (int) 0,
'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],
],
],
'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 {
},
'csv' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'csv',
],
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
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 => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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(Cake\Routing\Route\DashedRoute) 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) 5
protected queue => [
'' => [maximum depth reached],
]
}
protected fallbackHandler => object(App\Application) id:2 {
protected configDir => '/var/www/html/cakephp/config/'
protected plugins => object(Cake\Core\PluginCollection) id:3 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:4 {
}
protected container => object(Cake\Core\Container) id:5 {
}
protected _eventManager => object(Cake\Event\EventManager) id:6 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
|
); |
|
} |
|
$matching = Router::getRouteCollection()->getMiddleware($middleware); |
|
if (!$matching) { |
|
return $handler->handle($request); |
|
} |
|
|
|
$middleware = new MiddlewareQueue($matching); |
|
$runner = new Runner(); |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'controller' => 'Domains',
'action' => 'view',
'pass' => [
(int) 0 => '340000',
],
'plugin' => null,
'_matchedRoute' => '/{controller}/{action}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'csrfToken' => 'lZ/2HL+rpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU=',
]
protected _environment => [
'REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_STATUS' => '200',
'HTTP_X_FORWARDED_FOR' => '216.73.216.210',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_X_FORWARDED_PORT' => '443',
'HTTP_HOST' => 'test.phenxtoolkit.org',
'HTTP_X_AMZN_TRACE_ID' => 'Root=1-69a07811-59b7945b74354c942516f253',
'HTTP_ACCEPT' => '*/*',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_COOKIE' => 'csrfToken=lZ%2F2HL%2BrpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU%3D',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'SERVER_SIGNATURE' => '<address>Apache/2.4.56 (Debian) Server at test.phenxtoolkit.org Port 80</address>
',
'SERVER_SOFTWARE' => 'Apache/2.4.56 (Debian)',
'SERVER_NAME' => 'test.phenxtoolkit.org',
'SERVER_ADDR' => '172.18.0.2',
'SERVER_PORT' => '80',
'REMOTE_ADDR' => '172.31.47.167',
'DOCUMENT_ROOT' => '/var/www/html/cakephp',
'REQUEST_SCHEME' => 'http',
'CONTEXT_PREFIX' => '',
'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/cakephp',
'SERVER_ADMIN' => 'webmaster@localhost',
'SCRIPT_FILENAME' => '/var/www/html/cakephp/webroot/index.php',
'REMOTE_PORT' => '3332',
'REDIRECT_URL' => '/webroot/domains/view/340000',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'REQUEST_URI' => '/domains/view/340000',
'SCRIPT_NAME' => '/webroot/index.php',
'PHP_SELF' => '/webroot/index.php',
'REQUEST_TIME_FLOAT' => (float) 1772124177.3955,
'REQUEST_TIME' => (int) 1772124177,
'argv' => [
],
'argc' => (int) 0,
'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],
],
],
'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 {
},
'csv' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'csv',
],
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
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 => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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(Cake\Routing\Route\DashedRoute) 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); |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'controller' => 'Domains',
'action' => 'view',
'pass' => [
(int) 0 => '340000',
],
'plugin' => null,
'_matchedRoute' => '/{controller}/{action}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
'csrfToken' => 'lZ/2HL+rpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU=',
]
protected _environment => [
'REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_STATUS' => '200',
'HTTP_X_FORWARDED_FOR' => '216.73.216.210',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_X_FORWARDED_PORT' => '443',
'HTTP_HOST' => 'test.phenxtoolkit.org',
'HTTP_X_AMZN_TRACE_ID' => 'Root=1-69a07811-59b7945b74354c942516f253',
'HTTP_ACCEPT' => '*/*',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_COOKIE' => 'csrfToken=lZ%2F2HL%2BrpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU%3D',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'SERVER_SIGNATURE' => '<address>Apache/2.4.56 (Debian) Server at test.phenxtoolkit.org Port 80</address>
',
'SERVER_SOFTWARE' => 'Apache/2.4.56 (Debian)',
'SERVER_NAME' => 'test.phenxtoolkit.org',
'SERVER_ADDR' => '172.18.0.2',
'SERVER_PORT' => '80',
'REMOTE_ADDR' => '172.31.47.167',
'DOCUMENT_ROOT' => '/var/www/html/cakephp',
'REQUEST_SCHEME' => 'http',
'CONTEXT_PREFIX' => '',
'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/cakephp',
'SERVER_ADMIN' => 'webmaster@localhost',
'SCRIPT_FILENAME' => '/var/www/html/cakephp/webroot/index.php',
'REMOTE_PORT' => '3332',
'REDIRECT_URL' => '/webroot/domains/view/340000',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'REQUEST_URI' => '/domains/view/340000',
'SCRIPT_NAME' => '/webroot/index.php',
'PHP_SELF' => '/webroot/index.php',
'REQUEST_TIME_FLOAT' => (float) 1772124177.3955,
'REQUEST_TIME' => (int) 1772124177,
'argv' => [
],
'argc' => (int) 0,
'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],
],
],
'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 {
},
'csv' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'csv',
],
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
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 => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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(Cake\Routing\Route\DashedRoute) 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) 5
protected queue => [
'' => [maximum depth reached],
]
}
protected fallbackHandler => object(App\Application) id:2 {
protected configDir => '/var/www/html/cakephp/config/'
protected plugins => object(Cake\Core\PluginCollection) id:3 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:4 {
}
protected container => object(Cake\Core\Container) id:5 {
}
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); |
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 => [
'csrfToken' => 'lZ/2HL+rpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU=',
]
protected _environment => [
'REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_STATUS' => '200',
'HTTP_X_FORWARDED_FOR' => '216.73.216.210',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_X_FORWARDED_PORT' => '443',
'HTTP_HOST' => 'test.phenxtoolkit.org',
'HTTP_X_AMZN_TRACE_ID' => 'Root=1-69a07811-59b7945b74354c942516f253',
'HTTP_ACCEPT' => '*/*',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_COOKIE' => 'csrfToken=lZ%2F2HL%2BrpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU%3D',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'SERVER_SIGNATURE' => '<address>Apache/2.4.56 (Debian) Server at test.phenxtoolkit.org Port 80</address>
',
'SERVER_SOFTWARE' => 'Apache/2.4.56 (Debian)',
'SERVER_NAME' => 'test.phenxtoolkit.org',
'SERVER_ADDR' => '172.18.0.2',
'SERVER_PORT' => '80',
'REMOTE_ADDR' => '172.31.47.167',
'DOCUMENT_ROOT' => '/var/www/html/cakephp',
'REQUEST_SCHEME' => 'http',
'CONTEXT_PREFIX' => '',
'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/cakephp',
'SERVER_ADMIN' => 'webmaster@localhost',
'SCRIPT_FILENAME' => '/var/www/html/cakephp/webroot/index.php',
'REMOTE_PORT' => '3332',
'REDIRECT_URL' => '/webroot/domains/view/340000',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'REQUEST_URI' => '/domains/view/340000',
'SCRIPT_NAME' => '/webroot/index.php',
'PHP_SELF' => '/webroot/index.php',
'REQUEST_TIME_FLOAT' => (float) 1772124177.3955,
'REQUEST_TIME' => (int) 1772124177,
'argv' => [
],
'argc' => (int) 0,
'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],
],
],
'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 {
},
'csv' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'csv',
],
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
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 => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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); |
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 => [
'csrfToken' => 'lZ/2HL+rpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU=',
]
protected _environment => [
'REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_STATUS' => '200',
'HTTP_X_FORWARDED_FOR' => '216.73.216.210',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_X_FORWARDED_PORT' => '443',
'HTTP_HOST' => 'test.phenxtoolkit.org',
'HTTP_X_AMZN_TRACE_ID' => 'Root=1-69a07811-59b7945b74354c942516f253',
'HTTP_ACCEPT' => '*/*',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_COOKIE' => 'csrfToken=lZ%2F2HL%2BrpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU%3D',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'SERVER_SIGNATURE' => '<address>Apache/2.4.56 (Debian) Server at test.phenxtoolkit.org Port 80</address>
',
'SERVER_SOFTWARE' => 'Apache/2.4.56 (Debian)',
'SERVER_NAME' => 'test.phenxtoolkit.org',
'SERVER_ADDR' => '172.18.0.2',
'SERVER_PORT' => '80',
'REMOTE_ADDR' => '172.31.47.167',
'DOCUMENT_ROOT' => '/var/www/html/cakephp',
'REQUEST_SCHEME' => 'http',
'CONTEXT_PREFIX' => '',
'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/cakephp',
'SERVER_ADMIN' => 'webmaster@localhost',
'SCRIPT_FILENAME' => '/var/www/html/cakephp/webroot/index.php',
'REMOTE_PORT' => '3332',
'REDIRECT_URL' => '/webroot/domains/view/340000',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'REQUEST_URI' => '/domains/view/340000',
'SCRIPT_NAME' => '/webroot/index.php',
'PHP_SELF' => '/webroot/index.php',
'REQUEST_TIME_FLOAT' => (float) 1772124177.3955,
'REQUEST_TIME' => (int) 1772124177,
'argv' => [
],
'argc' => (int) 0,
'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],
],
],
'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 {
},
'csv' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'csv',
],
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
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 => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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) 5
protected queue => [
'' => [maximum depth reached],
]
}
protected fallbackHandler => object(App\Application) id:2 {
protected configDir => '/var/www/html/cakephp/config/'
protected plugins => object(Cake\Core\PluginCollection) id:3 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:4 {
}
protected container => object(Cake\Core\Container) id:5 {
}
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); |
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 => [
'csrfToken' => 'lZ/2HL+rpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU=',
]
protected _environment => [
'REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_STATUS' => '200',
'HTTP_X_FORWARDED_FOR' => '216.73.216.210',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_X_FORWARDED_PORT' => '443',
'HTTP_HOST' => 'test.phenxtoolkit.org',
'HTTP_X_AMZN_TRACE_ID' => 'Root=1-69a07811-59b7945b74354c942516f253',
'HTTP_ACCEPT' => '*/*',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_COOKIE' => 'csrfToken=lZ%2F2HL%2BrpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU%3D',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'SERVER_SIGNATURE' => '<address>Apache/2.4.56 (Debian) Server at test.phenxtoolkit.org Port 80</address>
',
'SERVER_SOFTWARE' => 'Apache/2.4.56 (Debian)',
'SERVER_NAME' => 'test.phenxtoolkit.org',
'SERVER_ADDR' => '172.18.0.2',
'SERVER_PORT' => '80',
'REMOTE_ADDR' => '172.31.47.167',
'DOCUMENT_ROOT' => '/var/www/html/cakephp',
'REQUEST_SCHEME' => 'http',
'CONTEXT_PREFIX' => '',
'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/cakephp',
'SERVER_ADMIN' => 'webmaster@localhost',
'SCRIPT_FILENAME' => '/var/www/html/cakephp/webroot/index.php',
'REMOTE_PORT' => '3332',
'REDIRECT_URL' => '/webroot/domains/view/340000',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'REQUEST_URI' => '/domains/view/340000',
'SCRIPT_NAME' => '/webroot/index.php',
'PHP_SELF' => '/webroot/index.php',
'REQUEST_TIME_FLOAT' => (float) 1772124177.3955,
'REQUEST_TIME' => (int) 1772124177,
'argv' => [
],
'argc' => (int) 0,
'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],
],
],
'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 {
},
'csv' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'csv',
],
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
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 => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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); |
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 => [
'csrfToken' => 'lZ/2HL+rpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU=',
]
protected _environment => [
'REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_STATUS' => '200',
'HTTP_X_FORWARDED_FOR' => '216.73.216.210',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_X_FORWARDED_PORT' => '443',
'HTTP_HOST' => 'test.phenxtoolkit.org',
'HTTP_X_AMZN_TRACE_ID' => 'Root=1-69a07811-59b7945b74354c942516f253',
'HTTP_ACCEPT' => '*/*',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_COOKIE' => 'csrfToken=lZ%2F2HL%2BrpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU%3D',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'SERVER_SIGNATURE' => '<address>Apache/2.4.56 (Debian) Server at test.phenxtoolkit.org Port 80</address>
',
'SERVER_SOFTWARE' => 'Apache/2.4.56 (Debian)',
'SERVER_NAME' => 'test.phenxtoolkit.org',
'SERVER_ADDR' => '172.18.0.2',
'SERVER_PORT' => '80',
'REMOTE_ADDR' => '172.31.47.167',
'DOCUMENT_ROOT' => '/var/www/html/cakephp',
'REQUEST_SCHEME' => 'http',
'CONTEXT_PREFIX' => '',
'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/cakephp',
'SERVER_ADMIN' => 'webmaster@localhost',
'SCRIPT_FILENAME' => '/var/www/html/cakephp/webroot/index.php',
'REMOTE_PORT' => '3332',
'REDIRECT_URL' => '/webroot/domains/view/340000',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'REQUEST_URI' => '/domains/view/340000',
'SCRIPT_NAME' => '/webroot/index.php',
'PHP_SELF' => '/webroot/index.php',
'REQUEST_TIME_FLOAT' => (float) 1772124177.3955,
'REQUEST_TIME' => (int) 1772124177,
'argv' => [
],
'argc' => (int) 0,
'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],
],
],
'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 {
},
'csv' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'csv',
],
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
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 => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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) 5
protected queue => [
'' => [maximum depth reached],
]
}
protected fallbackHandler => object(App\Application) id:2 {
protected configDir => '/var/www/html/cakephp/config/'
protected plugins => object(Cake\Core\PluginCollection) id:3 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:4 {
}
protected container => object(Cake\Core\Container) id:5 {
}
protected _eventManager => object(Cake\Event\EventManager) id:6 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
|
$this->queue = $queue; |
|
$this->queue->rewind(); |
|
$this->fallbackHandler = $fallbackHandler; |
|
|
|
return $this->handle($request); |
|
} |
|
|
|
/** |
|
* Handle incoming server request and return a response. |
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 => [
'csrfToken' => 'lZ/2HL+rpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU=',
]
protected _environment => [
'REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_STATUS' => '200',
'HTTP_X_FORWARDED_FOR' => '216.73.216.210',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_X_FORWARDED_PORT' => '443',
'HTTP_HOST' => 'test.phenxtoolkit.org',
'HTTP_X_AMZN_TRACE_ID' => 'Root=1-69a07811-59b7945b74354c942516f253',
'HTTP_ACCEPT' => '*/*',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_COOKIE' => 'csrfToken=lZ%2F2HL%2BrpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU%3D',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'SERVER_SIGNATURE' => '<address>Apache/2.4.56 (Debian) Server at test.phenxtoolkit.org Port 80</address>
',
'SERVER_SOFTWARE' => 'Apache/2.4.56 (Debian)',
'SERVER_NAME' => 'test.phenxtoolkit.org',
'SERVER_ADDR' => '172.18.0.2',
'SERVER_PORT' => '80',
'REMOTE_ADDR' => '172.31.47.167',
'DOCUMENT_ROOT' => '/var/www/html/cakephp',
'REQUEST_SCHEME' => 'http',
'CONTEXT_PREFIX' => '',
'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/cakephp',
'SERVER_ADMIN' => 'webmaster@localhost',
'SCRIPT_FILENAME' => '/var/www/html/cakephp/webroot/index.php',
'REMOTE_PORT' => '3332',
'REDIRECT_URL' => '/webroot/domains/view/340000',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'REQUEST_URI' => '/domains/view/340000',
'SCRIPT_NAME' => '/webroot/index.php',
'PHP_SELF' => '/webroot/index.php',
'REQUEST_TIME_FLOAT' => (float) 1772124177.3955,
'REQUEST_TIME' => (int) 1772124177,
'argv' => [
],
'argc' => (int) 0,
'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],
],
],
'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 {
},
'csv' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'csv',
],
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
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 => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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(); |
|
} |
Arguments
object(Cake\Http\MiddlewareQueue) id:0 {
protected position => (int) 5
protected queue => [
(int) 0 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) id:1 {
},
(int) 1 => object(Cake\Routing\Middleware\AssetMiddleware) id:2 {
},
(int) 2 => object(Cake\Routing\Middleware\RoutingMiddleware) id:3 {
},
(int) 3 => object(Cake\Http\Middleware\BodyParserMiddleware) id:4 {
},
(int) 4 => object(Cake\Http\Middleware\CsrfProtectionMiddleware) id:5 {
},
]
}
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 => [
'csrfToken' => 'lZ/2HL+rpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU=',
]
protected _environment => [
'REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_STATUS' => '200',
'HTTP_X_FORWARDED_FOR' => '216.73.216.210',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_X_FORWARDED_PORT' => '443',
'HTTP_HOST' => 'test.phenxtoolkit.org',
'HTTP_X_AMZN_TRACE_ID' => 'Root=1-69a07811-59b7945b74354c942516f253',
'HTTP_ACCEPT' => '*/*',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_COOKIE' => 'csrfToken=lZ%2F2HL%2BrpT4zOmIRTCUyBzhlY2RhMGFiMGQ0MzZlN2FmMzJkMTJlOTk2MTlhZTY0YzQ4OWJjMDU%3D',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'SERVER_SIGNATURE' => '<address>Apache/2.4.56 (Debian) Server at test.phenxtoolkit.org Port 80</address>
',
'SERVER_SOFTWARE' => 'Apache/2.4.56 (Debian)',
'SERVER_NAME' => 'test.phenxtoolkit.org',
'SERVER_ADDR' => '172.18.0.2',
'SERVER_PORT' => '80',
'REMOTE_ADDR' => '172.31.47.167',
'DOCUMENT_ROOT' => '/var/www/html/cakephp',
'REQUEST_SCHEME' => 'http',
'CONTEXT_PREFIX' => '',
'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/cakephp',
'SERVER_ADMIN' => 'webmaster@localhost',
'SCRIPT_FILENAME' => '/var/www/html/cakephp/webroot/index.php',
'REMOTE_PORT' => '3332',
'REDIRECT_URL' => '/webroot/domains/view/340000',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'REQUEST_URI' => '/domains/view/340000',
'SCRIPT_NAME' => '/webroot/index.php',
'PHP_SELF' => '/webroot/index.php',
'REQUEST_TIME_FLOAT' => (float) 1772124177.3955,
'REQUEST_TIME' => (int) 1772124177,
'argv' => [
],
'argc' => (int) 0,
'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],
],
],
'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 {
},
'csv' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'csv',
],
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
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 => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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 => '/var/www/html/cakephp/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\DomainsController) id:4 {
}
}
protected container => object(Cake\Core\Container) id: 3 {}
protected _eventManager => object(Cake\Event\EventManager) id:5 {
'_listeners' => [
'Controller.initialize' => '2 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()); |
|
|
Error in:
ROOT/src/Controller/DomainsController.php, line 742
If you want to customize this error message, create
templates/Error/error500.ctp