->where([$this->_table->aliasField($primaryKey) => $id]) |
|
->first(); |
|
|
|
if (!$node) { |
|
throw new RecordNotFoundException("Node \"{$id}\" was not found in the tree."); |
|
} |
|
|
|
/** @psalm-suppress InvalidReturnStatement */ |
|
return $node; |
if ($direct) { |
|
return $this->_scope($query)->where([$parent => $for]); |
|
} |
|
|
|
$node = $this->_getNode($for); |
|
|
|
return $this->_scope($query) |
|
->where([ |
|
"{$right} <" => $node->get($config['right']), |
'178'
|
|
if ($this->hasFinder($type) && $this->has($this->_finderMap[$type][0])) { |
|
[$behavior, $callMethod] = $this->_finderMap[$type]; |
|
|
|
return call_user_func_array([$this->_loaded[$behavior], $callMethod], $args); |
|
} |
|
|
|
throw new BadMethodCallException( |
|
sprintf('Cannot call finder "%s" it does not belong to any attached behavior.', $type) |
[ (int) 0 => object(Cake\ORM\Behavior\TreeBehavior) { [protected] _primaryKey => 'id' [protected] _defaultConfig => [ 'implementedFinders' => [ [maximum depth reached] ], 'implementedMethods' => [ [maximum depth reached] ], 'parent' => 'parent_id', 'left' => 'lft', 'right' => 'rght', 'scope' => null, 'level' => null, 'recoverOrder' => null ] [protected] _table => object(App\Model\Table\CategoriesTable) {} [protected] _reflectionCache => [] [protected] _config => [ 'implementedFinders' => [ [maximum depth reached] ], 'implementedMethods' => [ [maximum depth reached] ], 'parent' => 'parent_id', 'left' => 'lft', 'right' => 'rght', 'scope' => null, 'level' => 'level', 'recoverOrder' => null, 'leftField' => object(Cake\Database\Expression\IdentifierExpression) {}, 'rightField' => object(Cake\Database\Expression\IdentifierExpression) {} ] [protected] _configInitialized => true }, (int) 1 => 'findChildren' ] [ (int) 0 => object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT Categories.id AS Categories__id, Categories.title AS Categories__title, Categories.parent_id AS Categories__parent_id, Categories.lft AS Categories__lft, Categories.rght AS Categories__rght, Categories.level AS Categories__level, Categories.created AS Categories__created, Categories.modified AS Categories__modified, Categories.image AS Categories__image FROM categories Categories ORDER BY Categories.lft ASC', 'params' => [], 'defaultTypes' => [ 'Categories__id' => 'integer', 'Categories.id' => 'integer', 'id' => 'integer', 'Categories__title' => 'string', 'Categories.title' => 'string', 'title' => 'string', 'Categories__parent_id' => 'integer', 'Categories.parent_id' => 'integer', 'parent_id' => 'integer', 'Categories__lft' => 'integer', 'Categories.lft' => 'integer', 'lft' => 'integer', 'Categories__rght' => 'integer', 'Categories.rght' => 'integer', 'rght' => 'integer', 'Categories__level' => 'integer', 'Categories.level' => 'integer', 'level' => 'integer', 'Categories__created' => 'datetime', 'Categories.created' => 'datetime', 'created' => 'datetime', 'Categories__modified' => 'datetime', 'Categories.modified' => 'datetime', 'modified' => 'datetime', 'Categories__image' => 'string', 'Categories.image' => 'string', 'image' => 'string' ], 'decorators' => (int) 0, 'executed' => false, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 0, 'mapReducers' => (int) 0, 'contain' => [], 'matching' => [], 'extraOptions' => [ 'for' => '178' ], 'repository' => object(App\Model\Table\CategoriesTable) {} }, (int) 1 => [ 'for' => '178' ] ]
return $this->{$finder}($query, $options); |
|
} |
|
|
|
if ($this->_behaviors->hasFinder($type)) { |
|
return $this->_behaviors->callFinder($type, [$query, $options]); |
|
} |
|
|
|
throw new BadMethodCallException(sprintf( |
|
'Unknown finder method "%s" on %s.', |
'children' [ (int) 0 => object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT Categories.id AS Categories__id, Categories.title AS Categories__title, Categories.parent_id AS Categories__parent_id, Categories.lft AS Categories__lft, Categories.rght AS Categories__rght, Categories.level AS Categories__level, Categories.created AS Categories__created, Categories.modified AS Categories__modified, Categories.image AS Categories__image FROM categories Categories ORDER BY Categories.lft ASC', 'params' => [], 'defaultTypes' => [ 'Categories__id' => 'integer', 'Categories.id' => 'integer', 'id' => 'integer', 'Categories__title' => 'string', 'Categories.title' => 'string', 'title' => 'string', 'Categories__parent_id' => 'integer', 'Categories.parent_id' => 'integer', 'parent_id' => 'integer', 'Categories__lft' => 'integer', 'Categories.lft' => 'integer', 'lft' => 'integer', 'Categories__rght' => 'integer', 'Categories.rght' => 'integer', 'rght' => 'integer', 'Categories__level' => 'integer', 'Categories.level' => 'integer', 'level' => 'integer', 'Categories__created' => 'datetime', 'Categories.created' => 'datetime', 'created' => 'datetime', 'Categories__modified' => 'datetime', 'Categories.modified' => 'datetime', 'modified' => 'datetime', 'Categories__image' => 'string', 'Categories.image' => 'string', 'image' => 'string' ], 'decorators' => (int) 0, 'executed' => false, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 0, 'mapReducers' => (int) 0, 'contain' => [], 'matching' => [], 'extraOptions' => [ 'for' => '178' ], 'repository' => object(App\Model\Table\CategoriesTable) {} }, (int) 1 => [ 'for' => '178' ] ]
{ |
|
$query = $this->query(); |
|
$query->select(); |
|
|
|
return $this->callFinder($type, $query, $options); |
|
} |
|
|
|
/** |
|
* Returns the query as passed. |
'children' object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT Categories.id AS Categories__id, Categories.title AS Categories__title, Categories.parent_id AS Categories__parent_id, Categories.lft AS Categories__lft, Categories.rght AS Categories__rght, Categories.level AS Categories__level, Categories.created AS Categories__created, Categories.modified AS Categories__modified, Categories.image AS Categories__image FROM categories Categories ORDER BY Categories.lft ASC', 'params' => [], 'defaultTypes' => [ 'Categories__id' => 'integer', 'Categories.id' => 'integer', 'id' => 'integer', 'Categories__title' => 'string', 'Categories.title' => 'string', 'title' => 'string', 'Categories__parent_id' => 'integer', 'Categories.parent_id' => 'integer', 'parent_id' => 'integer', 'Categories__lft' => 'integer', 'Categories.lft' => 'integer', 'lft' => 'integer', 'Categories__rght' => 'integer', 'Categories.rght' => 'integer', 'rght' => 'integer', 'Categories__level' => 'integer', 'Categories.level' => 'integer', 'level' => 'integer', 'Categories__created' => 'datetime', 'Categories.created' => 'datetime', 'created' => 'datetime', 'Categories__modified' => 'datetime', 'Categories.modified' => 'datetime', 'modified' => 'datetime', 'Categories__image' => 'string', 'Categories.image' => 'string', 'image' => 'string' ], 'decorators' => (int) 0, 'executed' => false, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 0, 'mapReducers' => (int) 0, 'contain' => [], 'matching' => [], 'extraOptions' => [ 'for' => '178' ], 'repository' => object(App\Model\Table\CategoriesTable) { 'registryAlias' => 'Categories', 'table' => 'categories', 'alias' => 'Categories', 'entityClass' => 'App\Model\Entity\Category', 'associations' => [ [maximum depth reached] ], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } } [ 'for' => '178' ]
} else { |
|
foreach ($params as $key => $param) { |
|
$filters[] = $this->Categories->find()->where(['Categories.parent_id' => $param])->toArray(); |
|
} |
|
$categories = $this->Categories->find('children', ['for' => $node])->select(['id'])->find('threaded')->toArray(); |
|
} |
|
|
|
$list = []; |
|
|
'children' [ 'for' => '178' ]
* @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.', |
No arguments
} |
|
|
|
$action = $controller->getAction(); |
|
$args = array_values($controller->getRequest()->getParam('pass')); |
|
$controller->invokeAction($action, $args); |
|
|
|
$result = $controller->shutdownProcess(); |
|
if ($result instanceof ResponseInterface) { |
|
return $result; |
object(Closure) { } []
} |
|
|
|
$controller = $this->controllerFactory->create($request); |
|
|
|
return $this->controllerFactory->invoke($controller); |
|
} |
|
} |
|
|
object(App\Controller\CategoriesController) { paginate => [ 'limit' => (int) 10 ] RequestHandler => object(Cake\Controller\Component\RequestHandlerComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Flash => object(Cake\Controller\Component\FlashComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } Authentication => object(Authentication\Controller\Component\AuthenticationComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Authorization => object(Authorization\Controller\Component\AuthorizationComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Categories => object(App\Model\Table\CategoriesTable) { 'registryAlias' => 'Categories', 'table' => 'categories', 'alias' => 'Categories', 'entityClass' => 'App\Model\Entity\Category', 'associations' => [ [maximum depth reached] ], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } [protected] name => 'Categories' [protected] request => object(Cake\Http\ServerRequest) { 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) {} [protected] uri => object(Laminas\Diactoros\Uri) {} [protected] session => object(Cake\Http\Session) {} [protected] attributes => [ [maximum depth reached] ] [protected] emulatedAttributes => [ [maximum depth reached] ] [protected] uploadedFiles => [[maximum depth reached]] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true } [protected] response => object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ [maximum depth reached] ], 'file' => null, 'fileRange' => [[maximum depth reached]], 'cookies' => object(Cake\Http\Cookie\CookieCollection) {}, 'cacheDirectives' => [[maximum depth reached]], 'body' => '' } [protected] _responseClass => 'Cake\Http\Response' [protected] autoRender => true [protected] _components => object(Cake\Controller\ComponentRegistry) { '_Controller' => object(App\Controller\CategoriesController) {}, '_loaded' => [ [maximum depth reached] ], '_eventManager' => object(Cake\Event\EventManager) {}, '_eventClass' => 'Cake\Event\Event' } [protected] plugin => null [protected] _eventManager => object(Cake\Event\EventManager) { '_listeners' => [ [maximum depth reached] ], '_isGlobal' => false, '_trackEvents' => false, '_generalManager' => '(object) EventManager', '_dispatchedEvents' => null } [protected] _eventClass => 'Cake\Event\Event' [protected] _tableLocator => object(Cake\ORM\Locator\TableLocator) { [protected] locations => [ [maximum depth reached] ] [protected] _config => [[maximum depth reached]] [protected] _instances => [ [maximum depth reached] ] [protected] _fallbacked => [ [maximum depth reached] ] [protected] _options => [ [maximum depth reached] ] } [protected] modelClass => 'Categories' [protected] _modelFactories => [ 'Table' => [ (int) 0 => object(Cake\ORM\Locator\TableLocator) {}, (int) 1 => 'get' ] ] [protected] _modelType => 'Table' [protected] _viewBuilder => null }
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
|
} |
|
|
|
$response = new Response([ |
|
'body' => 'Middleware queue was exhausted without returning a response ' |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'TZ' => 'Asia/Ulaanbaatar', 'REDIRECT_HANDLER' => 'application/x-httpd-ea-php80', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW5oaZF7z4Y0uNeiubk8gAAABg', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.205.5.65', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.205.5.65', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.205.5.65', 'DOCUMENT_ROOT' => '/home/upzonemn/public_html', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '/cgi-sys', 'CONTEXT_DOCUMENT_ROOT' => '/usr/local/cpanel/cgi-sys/', 'SERVER_ADMIN' => 'webmaster@upzone.mn', 'SCRIPT_FILENAME' => '/home/upzonemn/public_html/webroot/index.php', 'REMOTE_PORT' => '36088', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&1=25&2=177&3=178', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&1=25&2=177&3=178', 'REQUEST_URI' => '/categories?0=23&1=25&2=177&3=178', 'SCRIPT_NAME' => '/webroot/index.php', 'ORIG_SCRIPT_FILENAME' => '/usr/local/cpanel/cgi-sys/ea-php80', 'ORIG_PATH_INFO' => '/webroot/index.php', 'ORIG_PATH_TRANSLATED' => '/home/upzonemn/public_html/webroot/index.php', 'ORIG_SCRIPT_NAME' => '/cgi-sys/ea-php80', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711651233.6408, 'REQUEST_TIME' => (int) 1711651233, 'ORIGINAL_REQUEST_METHOD' => 'GET', '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] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&1=25&2=177&3=178' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&1=25&2=177&3=178' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'd54b57f380e4eb84a6596c5c02f7952e34436abc49f4492472b3837177ba73ce6d65571e9bd2df6b0551ed97565edc941bce0b1ae3edd26489a485070ce45581', 'identity' => null, 'authentication' => object(Authentication\AuthenticationService) {}, 'authenticationResult' => object(Authentication\Authenticator\Result) {}, 'authorization' => object(Authorization\AuthorizationService) {} ] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true }
return ($this->callable)( |
|
$request, |
|
new Response(), |
|
function ($request, $res) use ($handler) { |
|
return $handler->handle($request); |
|
} |
|
); |
|
} |
|
|
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'TZ' => 'Asia/Ulaanbaatar', 'REDIRECT_HANDLER' => 'application/x-httpd-ea-php80', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW5oaZF7z4Y0uNeiubk8gAAABg', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.205.5.65', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.205.5.65', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.205.5.65', 'DOCUMENT_ROOT' => '/home/upzonemn/public_html', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '/cgi-sys', 'CONTEXT_DOCUMENT_ROOT' => '/usr/local/cpanel/cgi-sys/', 'SERVER_ADMIN' => 'webmaster@upzone.mn', 'SCRIPT_FILENAME' => '/home/upzonemn/public_html/webroot/index.php', 'REMOTE_PORT' => '36088', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&1=25&2=177&3=178', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&1=25&2=177&3=178', 'REQUEST_URI' => '/categories?0=23&1=25&2=177&3=178', 'SCRIPT_NAME' => '/webroot/index.php', 'ORIG_SCRIPT_FILENAME' => '/usr/local/cpanel/cgi-sys/ea-php80', 'ORIG_PATH_INFO' => '/webroot/index.php', 'ORIG_PATH_TRANSLATED' => '/home/upzonemn/public_html/webroot/index.php', 'ORIG_SCRIPT_NAME' => '/cgi-sys/ea-php80', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711651233.6408, 'REQUEST_TIME' => (int) 1711651233, 'ORIGINAL_REQUEST_METHOD' => 'GET', '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] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&1=25&2=177&3=178' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&1=25&2=177&3=178' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'd54b57f380e4eb84a6596c5c02f7952e34436abc49f4492472b3837177ba73ce6d65571e9bd2df6b0551ed97565edc941bce0b1ae3edd26489a485070ce45581', 'identity' => null, 'authentication' => object(Authentication\AuthenticationService) {}, 'authenticationResult' => object(Authentication\Authenticator\Result) {}, 'authorization' => object(Authorization\AuthorizationService) {} ] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true }
$middlewareQueue->add(function ($req, $res, $next) { |
|
if ($req->getParam('plugin') === 'DebugKit') { |
|
$req->getAttribute('authorization')->skipAuthorization(); |
|
} |
|
return $next($req, $res); |
|
}); |
|
} |
|
|
|
|
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'TZ' => 'Asia/Ulaanbaatar', 'REDIRECT_HANDLER' => 'application/x-httpd-ea-php80', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW5oaZF7z4Y0uNeiubk8gAAABg', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.205.5.65', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.205.5.65', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.205.5.65', 'DOCUMENT_ROOT' => '/home/upzonemn/public_html', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '/cgi-sys', 'CONTEXT_DOCUMENT_ROOT' => '/usr/local/cpanel/cgi-sys/', 'SERVER_ADMIN' => 'webmaster@upzone.mn', 'SCRIPT_FILENAME' => '/home/upzonemn/public_html/webroot/index.php', 'REMOTE_PORT' => '36088', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&1=25&2=177&3=178', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&1=25&2=177&3=178', 'REQUEST_URI' => '/categories?0=23&1=25&2=177&3=178', 'SCRIPT_NAME' => '/webroot/index.php', 'ORIG_SCRIPT_FILENAME' => '/usr/local/cpanel/cgi-sys/ea-php80', 'ORIG_PATH_INFO' => '/webroot/index.php', 'ORIG_PATH_TRANSLATED' => '/home/upzonemn/public_html/webroot/index.php', 'ORIG_SCRIPT_NAME' => '/cgi-sys/ea-php80', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711651233.6408, 'REQUEST_TIME' => (int) 1711651233, 'ORIGINAL_REQUEST_METHOD' => 'GET', '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] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&1=25&2=177&3=178' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&1=25&2=177&3=178' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'd54b57f380e4eb84a6596c5c02f7952e34436abc49f4492472b3837177ba73ce6d65571e9bd2df6b0551ed97565edc941bce0b1ae3edd26489a485070ce45581', 'identity' => null, 'authentication' => object(Authentication\AuthenticationService) {}, 'authenticationResult' => object(Authentication\Authenticator\Result) {}, 'authorization' => object(Authorization\AuthorizationService) {} ] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$request, |
|
new Response(), |
|
function ($request, $res) use ($handler) { |
|
return $handler->handle($request); |
|
} |
|
); |
|
} |
|
|
|
/** |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'TZ' => 'Asia/Ulaanbaatar', 'REDIRECT_HANDLER' => 'application/x-httpd-ea-php80', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW5oaZF7z4Y0uNeiubk8gAAABg', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.205.5.65', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.205.5.65', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.205.5.65', 'DOCUMENT_ROOT' => '/home/upzonemn/public_html', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '/cgi-sys', 'CONTEXT_DOCUMENT_ROOT' => '/usr/local/cpanel/cgi-sys/', 'SERVER_ADMIN' => 'webmaster@upzone.mn', 'SCRIPT_FILENAME' => '/home/upzonemn/public_html/webroot/index.php', 'REMOTE_PORT' => '36088', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&1=25&2=177&3=178', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&1=25&2=177&3=178', 'REQUEST_URI' => '/categories?0=23&1=25&2=177&3=178', 'SCRIPT_NAME' => '/webroot/index.php', 'ORIG_SCRIPT_FILENAME' => '/usr/local/cpanel/cgi-sys/ea-php80', 'ORIG_PATH_INFO' => '/webroot/index.php', 'ORIG_PATH_TRANSLATED' => '/home/upzonemn/public_html/webroot/index.php', 'ORIG_SCRIPT_NAME' => '/cgi-sys/ea-php80', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711651233.6408, 'REQUEST_TIME' => (int) 1711651233, 'ORIGINAL_REQUEST_METHOD' => 'GET', '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] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&1=25&2=177&3=178' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&1=25&2=177&3=178' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'd54b57f380e4eb84a6596c5c02f7952e34436abc49f4492472b3837177ba73ce6d65571e9bd2df6b0551ed97565edc941bce0b1ae3edd26489a485070ce45581', 'identity' => null, 'authentication' => object(Authentication\AuthenticationService) {}, 'authenticationResult' => object(Authentication\Authenticator\Result) {}, 'authorization' => object(Authorization\AuthorizationService) {} ] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Closure) { }
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'TZ' => 'Asia/Ulaanbaatar', 'REDIRECT_HANDLER' => 'application/x-httpd-ea-php80', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW5oaZF7z4Y0uNeiubk8gAAABg', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.205.5.65', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.205.5.65', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.205.5.65', 'DOCUMENT_ROOT' => '/home/upzonemn/public_html', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '/cgi-sys', 'CONTEXT_DOCUMENT_ROOT' => '/usr/local/cpanel/cgi-sys/', 'SERVER_ADMIN' => 'webmaster@upzone.mn', 'SCRIPT_FILENAME' => '/home/upzonemn/public_html/webroot/index.php', 'REMOTE_PORT' => '36088', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&1=25&2=177&3=178', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&1=25&2=177&3=178', 'REQUEST_URI' => '/categories?0=23&1=25&2=177&3=178', 'SCRIPT_NAME' => '/webroot/index.php', 'ORIG_SCRIPT_FILENAME' => '/usr/local/cpanel/cgi-sys/ea-php80', 'ORIG_PATH_INFO' => '/webroot/index.php', 'ORIG_PATH_TRANSLATED' => '/home/upzonemn/public_html/webroot/index.php', 'ORIG_SCRIPT_NAME' => '/cgi-sys/ea-php80', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711651233.6408, 'REQUEST_TIME' => (int) 1711651233, 'ORIGINAL_REQUEST_METHOD' => 'GET', '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] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&1=25&2=177&3=178' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&1=25&2=177&3=178' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'd54b57f380e4eb84a6596c5c02f7952e34436abc49f4492472b3837177ba73ce6d65571e9bd2df6b0551ed97565edc941bce0b1ae3edd26489a485070ce45581', 'identity' => null, 'authentication' => object(Authentication\AuthenticationService) {}, 'authenticationResult' => object(Authentication\Authenticator\Result) {}, 'authorization' => object(Authorization\AuthorizationService) {} ] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true } object(Cake\Http\Runner) { [protected] queue => object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 6 [protected] queue => [ [maximum depth reached] ] } [protected] fallbackHandler => object(App\Application) { [protected] configDir => '/home/upzonemn/public_html/config/' [protected] plugins => object(Cake\Core\PluginCollection) {} [protected] controllerFactory => object(Cake\Controller\ControllerFactory) {} [protected] _eventManager => object(Cake\Event\EventManager) {} [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()]); |
|
} |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'TZ' => 'Asia/Ulaanbaatar', 'REDIRECT_HANDLER' => 'application/x-httpd-ea-php80', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW5oaZF7z4Y0uNeiubk8gAAABg', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.205.5.65', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.205.5.65', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.205.5.65', 'DOCUMENT_ROOT' => '/home/upzonemn/public_html', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '/cgi-sys', 'CONTEXT_DOCUMENT_ROOT' => '/usr/local/cpanel/cgi-sys/', 'SERVER_ADMIN' => 'webmaster@upzone.mn', 'SCRIPT_FILENAME' => '/home/upzonemn/public_html/webroot/index.php', 'REMOTE_PORT' => '36088', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&1=25&2=177&3=178', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&1=25&2=177&3=178', 'REQUEST_URI' => '/categories?0=23&1=25&2=177&3=178', 'SCRIPT_NAME' => '/webroot/index.php', 'ORIG_SCRIPT_FILENAME' => '/usr/local/cpanel/cgi-sys/ea-php80', 'ORIG_PATH_INFO' => '/webroot/index.php', 'ORIG_PATH_TRANSLATED' => '/home/upzonemn/public_html/webroot/index.php', 'ORIG_SCRIPT_NAME' => '/cgi-sys/ea-php80', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711651233.6408, 'REQUEST_TIME' => (int) 1711651233, 'ORIGINAL_REQUEST_METHOD' => 'GET', '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] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&1=25&2=177&3=178' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&1=25&2=177&3=178' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'd54b57f380e4eb84a6596c5c02f7952e34436abc49f4492472b3837177ba73ce6d65571e9bd2df6b0551ed97565edc941bce0b1ae3edd26489a485070ce45581', 'identity' => null, 'authentication' => object(Authentication\AuthenticationService) {}, 'authenticationResult' => object(Authentication\Authenticator\Result) {}, 'authorization' => object(Authorization\AuthorizationService) {} ] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true }
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'TZ' => 'Asia/Ulaanbaatar', 'REDIRECT_HANDLER' => 'application/x-httpd-ea-php80', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW5oaZF7z4Y0uNeiubk8gAAABg', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.205.5.65', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.205.5.65', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.205.5.65', 'DOCUMENT_ROOT' => '/home/upzonemn/public_html', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '/cgi-sys', 'CONTEXT_DOCUMENT_ROOT' => '/usr/local/cpanel/cgi-sys/', 'SERVER_ADMIN' => 'webmaster@upzone.mn', 'SCRIPT_FILENAME' => '/home/upzonemn/public_html/webroot/index.php', 'REMOTE_PORT' => '36088', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&1=25&2=177&3=178', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&1=25&2=177&3=178', 'REQUEST_URI' => '/categories?0=23&1=25&2=177&3=178', 'SCRIPT_NAME' => '/webroot/index.php', 'ORIG_SCRIPT_FILENAME' => '/usr/local/cpanel/cgi-sys/ea-php80', 'ORIG_PATH_INFO' => '/webroot/index.php', 'ORIG_PATH_TRANSLATED' => '/home/upzonemn/public_html/webroot/index.php', 'ORIG_SCRIPT_NAME' => '/cgi-sys/ea-php80', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711651233.6408, 'REQUEST_TIME' => (int) 1711651233, 'ORIGINAL_REQUEST_METHOD' => 'GET', '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] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&1=25&2=177&3=178' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&1=25&2=177&3=178' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'd54b57f380e4eb84a6596c5c02f7952e34436abc49f4492472b3837177ba73ce6d65571e9bd2df6b0551ed97565edc941bce0b1ae3edd26489a485070ce45581', 'identity' => null, 'authentication' => object(Authentication\AuthenticationService) {}, 'authenticationResult' => object(Authentication\Authenticator\Result) {}, 'authorization' => object(Authorization\AuthorizationService) {} ] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true } object(Cake\Http\Runner) { [protected] queue => object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 6 [protected] queue => [ [maximum depth reached] ] } [protected] fallbackHandler => object(App\Application) { [protected] configDir => '/home/upzonemn/public_html/config/' [protected] plugins => object(Cake\Core\PluginCollection) {} [protected] controllerFactory => object(Cake\Controller\ControllerFactory) {} [protected] _eventManager => object(Cake\Event\EventManager) {} [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()); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'TZ' => 'Asia/Ulaanbaatar', 'REDIRECT_HANDLER' => 'application/x-httpd-ea-php80', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW5oaZF7z4Y0uNeiubk8gAAABg', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.205.5.65', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.205.5.65', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.205.5.65', 'DOCUMENT_ROOT' => '/home/upzonemn/public_html', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '/cgi-sys', 'CONTEXT_DOCUMENT_ROOT' => '/usr/local/cpanel/cgi-sys/', 'SERVER_ADMIN' => 'webmaster@upzone.mn', 'SCRIPT_FILENAME' => '/home/upzonemn/public_html/webroot/index.php', 'REMOTE_PORT' => '36088', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&1=25&2=177&3=178', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&1=25&2=177&3=178', 'REQUEST_URI' => '/categories?0=23&1=25&2=177&3=178', 'SCRIPT_NAME' => '/webroot/index.php', 'ORIG_SCRIPT_FILENAME' => '/usr/local/cpanel/cgi-sys/ea-php80', 'ORIG_PATH_INFO' => '/webroot/index.php', 'ORIG_PATH_TRANSLATED' => '/home/upzonemn/public_html/webroot/index.php', 'ORIG_SCRIPT_NAME' => '/cgi-sys/ea-php80', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711651233.6408, 'REQUEST_TIME' => (int) 1711651233, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], '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] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&1=25&2=177&3=178' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&1=25&2=177&3=178' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'd54b57f380e4eb84a6596c5c02f7952e34436abc49f4492472b3837177ba73ce6d65571e9bd2df6b0551ed97565edc941bce0b1ae3edd26489a485070ce45581', 'identity' => null, 'authentication' => object(Authentication\AuthenticationService) {}, 'authenticationResult' => object(Authentication\Authenticator\Result) {} ] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true }
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'TZ' => 'Asia/Ulaanbaatar', 'REDIRECT_HANDLER' => 'application/x-httpd-ea-php80', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW5oaZF7z4Y0uNeiubk8gAAABg', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.205.5.65', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.205.5.65', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.205.5.65', 'DOCUMENT_ROOT' => '/home/upzonemn/public_html', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '/cgi-sys', 'CONTEXT_DOCUMENT_ROOT' => '/usr/local/cpanel/cgi-sys/', 'SERVER_ADMIN' => 'webmaster@upzone.mn', 'SCRIPT_FILENAME' => '/home/upzonemn/public_html/webroot/index.php', 'REMOTE_PORT' => '36088', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&1=25&2=177&3=178', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&1=25&2=177&3=178', 'REQUEST_URI' => '/categories?0=23&1=25&2=177&3=178', 'SCRIPT_NAME' => '/webroot/index.php', 'ORIG_SCRIPT_FILENAME' => '/usr/local/cpanel/cgi-sys/ea-php80', 'ORIG_PATH_INFO' => '/webroot/index.php', 'ORIG_PATH_TRANSLATED' => '/home/upzonemn/public_html/webroot/index.php', 'ORIG_SCRIPT_NAME' => '/cgi-sys/ea-php80', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711651233.6408, 'REQUEST_TIME' => (int) 1711651233, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], '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] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&1=25&2=177&3=178' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&1=25&2=177&3=178' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'd54b57f380e4eb84a6596c5c02f7952e34436abc49f4492472b3837177ba73ce6d65571e9bd2df6b0551ed97565edc941bce0b1ae3edd26489a485070ce45581', 'identity' => null, 'authentication' => object(Authentication\AuthenticationService) {}, 'authenticationResult' => object(Authentication\Authenticator\Result) {} ] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true } object(Cake\Http\Runner) { [protected] queue => object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 6 [protected] queue => [ [maximum depth reached] ] } [protected] fallbackHandler => object(App\Application) { [protected] configDir => '/home/upzonemn/public_html/config/' [protected] plugins => object(Cake\Core\PluginCollection) {} [protected] controllerFactory => object(Cake\Controller\ControllerFactory) {} [protected] _eventManager => object(Cake\Event\EventManager) {} [protected] _eventClass => 'Cake\Event\Event' } }
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
|
} |
|
|
|
$response = new Response([ |
|
'body' => 'Middleware queue was exhausted without returning a response ' |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'TZ' => 'Asia/Ulaanbaatar', 'REDIRECT_HANDLER' => 'application/x-httpd-ea-php80', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW5oaZF7z4Y0uNeiubk8gAAABg', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.205.5.65', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.205.5.65', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.205.5.65', 'DOCUMENT_ROOT' => '/home/upzonemn/public_html', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '/cgi-sys', 'CONTEXT_DOCUMENT_ROOT' => '/usr/local/cpanel/cgi-sys/', 'SERVER_ADMIN' => 'webmaster@upzone.mn', 'SCRIPT_FILENAME' => '/home/upzonemn/public_html/webroot/index.php', 'REMOTE_PORT' => '36088', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&1=25&2=177&3=178', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&1=25&2=177&3=178', 'REQUEST_URI' => '/categories?0=23&1=25&2=177&3=178', 'SCRIPT_NAME' => '/webroot/index.php', 'ORIG_SCRIPT_FILENAME' => '/usr/local/cpanel/cgi-sys/ea-php80', 'ORIG_PATH_INFO' => '/webroot/index.php', 'ORIG_PATH_TRANSLATED' => '/home/upzonemn/public_html/webroot/index.php', 'ORIG_SCRIPT_NAME' => '/cgi-sys/ea-php80', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711651233.6408, 'REQUEST_TIME' => (int) 1711651233, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], '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] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&1=25&2=177&3=178' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&1=25&2=177&3=178' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'd54b57f380e4eb84a6596c5c02f7952e34436abc49f4492472b3837177ba73ce6d65571e9bd2df6b0551ed97565edc941bce0b1ae3edd26489a485070ce45581' ] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true }
if ($method === 'GET' && $cookieData === null) { |
|
$token = $this->_createToken(); |
|
$request = $request->withAttribute('csrfToken', $token); |
|
/** @var mixed $response */ |
|
$response = $handler->handle($request); |
|
|
|
return $this->_addTokenCookie($token, $request, $response); |
|
} |
|
|
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'TZ' => 'Asia/Ulaanbaatar', 'REDIRECT_HANDLER' => 'application/x-httpd-ea-php80', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW5oaZF7z4Y0uNeiubk8gAAABg', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.205.5.65', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.205.5.65', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.205.5.65', 'DOCUMENT_ROOT' => '/home/upzonemn/public_html', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '/cgi-sys', 'CONTEXT_DOCUMENT_ROOT' => '/usr/local/cpanel/cgi-sys/', 'SERVER_ADMIN' => 'webmaster@upzone.mn', 'SCRIPT_FILENAME' => '/home/upzonemn/public_html/webroot/index.php', 'REMOTE_PORT' => '36088', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&1=25&2=177&3=178', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&1=25&2=177&3=178', 'REQUEST_URI' => '/categories?0=23&1=25&2=177&3=178', 'SCRIPT_NAME' => '/webroot/index.php', 'ORIG_SCRIPT_FILENAME' => '/usr/local/cpanel/cgi-sys/ea-php80', 'ORIG_PATH_INFO' => '/webroot/index.php', 'ORIG_PATH_TRANSLATED' => '/home/upzonemn/public_html/webroot/index.php', 'ORIG_SCRIPT_NAME' => '/cgi-sys/ea-php80', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711651233.6408, 'REQUEST_TIME' => (int) 1711651233, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], '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] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&1=25&2=177&3=178' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&1=25&2=177&3=178' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'd54b57f380e4eb84a6596c5c02f7952e34436abc49f4492472b3837177ba73ce6d65571e9bd2df6b0551ed97565edc941bce0b1ae3edd26489a485070ce45581' ] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true }
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'TZ' => 'Asia/Ulaanbaatar', 'REDIRECT_HANDLER' => 'application/x-httpd-ea-php80', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW5oaZF7z4Y0uNeiubk8gAAABg', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.205.5.65', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.205.5.65', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.205.5.65', 'DOCUMENT_ROOT' => '/home/upzonemn/public_html', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '/cgi-sys', 'CONTEXT_DOCUMENT_ROOT' => '/usr/local/cpanel/cgi-sys/', 'SERVER_ADMIN' => 'webmaster@upzone.mn', 'SCRIPT_FILENAME' => '/home/upzonemn/public_html/webroot/index.php', 'REMOTE_PORT' => '36088', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&1=25&2=177&3=178', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&1=25&2=177&3=178', 'REQUEST_URI' => '/categories?0=23&1=25&2=177&3=178', 'SCRIPT_NAME' => '/webroot/index.php', 'ORIG_SCRIPT_FILENAME' => '/usr/local/cpanel/cgi-sys/ea-php80', 'ORIG_PATH_INFO' => '/webroot/index.php', 'ORIG_PATH_TRANSLATED' => '/home/upzonemn/public_html/webroot/index.php', 'ORIG_SCRIPT_NAME' => '/cgi-sys/ea-php80', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711651233.6408, 'REQUEST_TIME' => (int) 1711651233, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], '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] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&1=25&2=177&3=178' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&1=25&2=177&3=178' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'd54b57f380e4eb84a6596c5c02f7952e34436abc49f4492472b3837177ba73ce6d65571e9bd2df6b0551ed97565edc941bce0b1ae3edd26489a485070ce45581' ] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true } object(Cake\Http\Runner) { [protected] queue => object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 1 [protected] queue => [ [maximum depth reached] ] } [protected] fallbackHandler => object(Cake\Http\Runner) { [protected] queue => object(Cake\Http\MiddlewareQueue) {} [protected] fallbackHandler => object(App\Application) {} } }
$this->queue = $queue; |
|
$this->queue->rewind(); |
|
$this->fallbackHandler = $fallbackHandler; |
|
|
|
return $this->handle($request); |
|
} |
|
|
|
/** |
|
* Handle incoming server request and return a response. |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'TZ' => 'Asia/Ulaanbaatar', 'REDIRECT_HANDLER' => 'application/x-httpd-ea-php80', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW5oaZF7z4Y0uNeiubk8gAAABg', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.205.5.65', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.205.5.65', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.205.5.65', 'DOCUMENT_ROOT' => '/home/upzonemn/public_html', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '/cgi-sys', 'CONTEXT_DOCUMENT_ROOT' => '/usr/local/cpanel/cgi-sys/', 'SERVER_ADMIN' => 'webmaster@upzone.mn', 'SCRIPT_FILENAME' => '/home/upzonemn/public_html/webroot/index.php', 'REMOTE_PORT' => '36088', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&1=25&2=177&3=178', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&1=25&2=177&3=178', 'REQUEST_URI' => '/categories?0=23&1=25&2=177&3=178', 'SCRIPT_NAME' => '/webroot/index.php', 'ORIG_SCRIPT_FILENAME' => '/usr/local/cpanel/cgi-sys/ea-php80', 'ORIG_PATH_INFO' => '/webroot/index.php', 'ORIG_PATH_TRANSLATED' => '/home/upzonemn/public_html/webroot/index.php', 'ORIG_SCRIPT_NAME' => '/cgi-sys/ea-php80', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711651233.6408, 'REQUEST_TIME' => (int) 1711651233, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], '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] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&1=25&2=177&3=178' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&1=25&2=177&3=178' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true }
|
|
$middleware = new MiddlewareQueue($matching); |
|
$runner = new Runner(); |
|
|
|
return $runner->run($middleware, $request, $handler); |
|
} |
|
} |
|
|
object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 1 [protected] queue => [ (int) 0 => object(Cake\Http\Middleware\CsrfProtectionMiddleware) {} ] } object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'TZ' => 'Asia/Ulaanbaatar', 'REDIRECT_HANDLER' => 'application/x-httpd-ea-php80', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW5oaZF7z4Y0uNeiubk8gAAABg', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.205.5.65', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.205.5.65', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.205.5.65', 'DOCUMENT_ROOT' => '/home/upzonemn/public_html', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '/cgi-sys', 'CONTEXT_DOCUMENT_ROOT' => '/usr/local/cpanel/cgi-sys/', 'SERVER_ADMIN' => 'webmaster@upzone.mn', 'SCRIPT_FILENAME' => '/home/upzonemn/public_html/webroot/index.php', 'REMOTE_PORT' => '36088', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&1=25&2=177&3=178', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&1=25&2=177&3=178', 'REQUEST_URI' => '/categories?0=23&1=25&2=177&3=178', 'SCRIPT_NAME' => '/webroot/index.php', 'ORIG_SCRIPT_FILENAME' => '/usr/local/cpanel/cgi-sys/ea-php80', 'ORIG_PATH_INFO' => '/webroot/index.php', 'ORIG_PATH_TRANSLATED' => '/home/upzonemn/public_html/webroot/index.php', 'ORIG_SCRIPT_NAME' => '/cgi-sys/ea-php80', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711651233.6408, 'REQUEST_TIME' => (int) 1711651233, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], '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] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&1=25&2=177&3=178' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&1=25&2=177&3=178' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true } object(Cake\Http\Runner) { [protected] queue => object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 6 [protected] queue => [ [maximum depth reached] ] } [protected] fallbackHandler => object(App\Application) { [protected] configDir => '/home/upzonemn/public_html/config/' [protected] plugins => object(Cake\Core\PluginCollection) {} [protected] controllerFactory => object(Cake\Controller\ControllerFactory) {} [protected] _eventManager => object(Cake\Event\EventManager) {} [protected] _eventClass => 'Cake\Event\Event' } }
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'TZ' => 'Asia/Ulaanbaatar', 'REDIRECT_HANDLER' => 'application/x-httpd-ea-php80', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW5oaZF7z4Y0uNeiubk8gAAABg', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.205.5.65', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.205.5.65', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.205.5.65', 'DOCUMENT_ROOT' => '/home/upzonemn/public_html', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '/cgi-sys', 'CONTEXT_DOCUMENT_ROOT' => '/usr/local/cpanel/cgi-sys/', 'SERVER_ADMIN' => 'webmaster@upzone.mn', 'SCRIPT_FILENAME' => '/home/upzonemn/public_html/webroot/index.php', 'REMOTE_PORT' => '36088', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&1=25&2=177&3=178', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&1=25&2=177&3=178', 'REQUEST_URI' => '/categories?0=23&1=25&2=177&3=178', 'SCRIPT_NAME' => '/webroot/index.php', 'ORIG_SCRIPT_FILENAME' => '/usr/local/cpanel/cgi-sys/ea-php80', 'ORIG_PATH_INFO' => '/webroot/index.php', 'ORIG_PATH_TRANSLATED' => '/home/upzonemn/public_html/webroot/index.php', 'ORIG_SCRIPT_NAME' => '/cgi-sys/ea-php80', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711651233.6408, 'REQUEST_TIME' => (int) 1711651233, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], '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] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&1=25&2=177&3=178' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&1=25&2=177&3=178' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true } object(Cake\Http\Runner) { [protected] queue => object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 6 [protected] queue => [ [maximum depth reached] ] } [protected] fallbackHandler => object(App\Application) { [protected] configDir => '/home/upzonemn/public_html/config/' [protected] plugins => object(Cake\Core\PluginCollection) {} [protected] controllerFactory => object(Cake\Controller\ControllerFactory) {} [protected] _eventManager => object(Cake\Event\EventManager) {} [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); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'TZ' => 'Asia/Ulaanbaatar', 'REDIRECT_HANDLER' => 'application/x-httpd-ea-php80', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW5oaZF7z4Y0uNeiubk8gAAABg', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.205.5.65', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.205.5.65', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.205.5.65', 'DOCUMENT_ROOT' => '/home/upzonemn/public_html', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '/cgi-sys', 'CONTEXT_DOCUMENT_ROOT' => '/usr/local/cpanel/cgi-sys/', 'SERVER_ADMIN' => 'webmaster@upzone.mn', 'SCRIPT_FILENAME' => '/home/upzonemn/public_html/webroot/index.php', 'REMOTE_PORT' => '36088', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&1=25&2=177&3=178', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&1=25&2=177&3=178', 'REQUEST_URI' => '/categories?0=23&1=25&2=177&3=178', 'SCRIPT_NAME' => '/webroot/index.php', 'ORIG_SCRIPT_FILENAME' => '/usr/local/cpanel/cgi-sys/ea-php80', 'ORIG_PATH_INFO' => '/webroot/index.php', 'ORIG_PATH_TRANSLATED' => '/home/upzonemn/public_html/webroot/index.php', 'ORIG_SCRIPT_NAME' => '/cgi-sys/ea-php80', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711651233.6408, 'REQUEST_TIME' => (int) 1711651233, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], '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] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&1=25&2=177&3=178' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&1=25&2=177&3=178' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true }
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'TZ' => 'Asia/Ulaanbaatar', 'REDIRECT_HANDLER' => 'application/x-httpd-ea-php80', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW5oaZF7z4Y0uNeiubk8gAAABg', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.205.5.65', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.205.5.65', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.205.5.65', 'DOCUMENT_ROOT' => '/home/upzonemn/public_html', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '/cgi-sys', 'CONTEXT_DOCUMENT_ROOT' => '/usr/local/cpanel/cgi-sys/', 'SERVER_ADMIN' => 'webmaster@upzone.mn', 'SCRIPT_FILENAME' => '/home/upzonemn/public_html/webroot/index.php', 'REMOTE_PORT' => '36088', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&1=25&2=177&3=178', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&1=25&2=177&3=178', 'REQUEST_URI' => '/categories?0=23&1=25&2=177&3=178', 'SCRIPT_NAME' => '/webroot/index.php', 'ORIG_SCRIPT_FILENAME' => '/usr/local/cpanel/cgi-sys/ea-php80', 'ORIG_PATH_INFO' => '/webroot/index.php', 'ORIG_PATH_TRANSLATED' => '/home/upzonemn/public_html/webroot/index.php', 'ORIG_SCRIPT_NAME' => '/cgi-sys/ea-php80', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711651233.6408, 'REQUEST_TIME' => (int) 1711651233, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], '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] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&1=25&2=177&3=178' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&1=25&2=177&3=178' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true } object(Cake\Http\Runner) { [protected] queue => object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 6 [protected] queue => [ [maximum depth reached] ] } [protected] fallbackHandler => object(App\Application) { [protected] configDir => '/home/upzonemn/public_html/config/' [protected] plugins => object(Cake\Core\PluginCollection) {} [protected] controllerFactory => object(Cake\Controller\ControllerFactory) {} [protected] _eventManager => object(Cake\Event\EventManager) {} [protected] _eventClass => 'Cake\Event\Event' } }
*/ |
|
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
{ |
|
try { |
|
return $handler->handle($request); |
|
} catch (Throwable $exception) { |
|
return $this->handleException($exception, $request); |
|
} |
|
} |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'TZ' => 'Asia/Ulaanbaatar', 'REDIRECT_HANDLER' => 'application/x-httpd-ea-php80', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW5oaZF7z4Y0uNeiubk8gAAABg', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.205.5.65', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.205.5.65', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.205.5.65', 'DOCUMENT_ROOT' => '/home/upzonemn/public_html', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '/cgi-sys', 'CONTEXT_DOCUMENT_ROOT' => '/usr/local/cpanel/cgi-sys/', 'SERVER_ADMIN' => 'webmaster@upzone.mn', 'SCRIPT_FILENAME' => '/home/upzonemn/public_html/webroot/index.php', 'REMOTE_PORT' => '36088', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&1=25&2=177&3=178', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&1=25&2=177&3=178', 'REQUEST_URI' => '/categories?0=23&1=25&2=177&3=178', 'SCRIPT_NAME' => '/webroot/index.php', 'ORIG_SCRIPT_FILENAME' => '/usr/local/cpanel/cgi-sys/ea-php80', 'ORIG_PATH_INFO' => '/webroot/index.php', 'ORIG_PATH_TRANSLATED' => '/home/upzonemn/public_html/webroot/index.php', 'ORIG_SCRIPT_NAME' => '/cgi-sys/ea-php80', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711651233.6408, 'REQUEST_TIME' => (int) 1711651233, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], '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] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&1=25&2=177&3=178' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&1=25&2=177&3=178' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true }
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'TZ' => 'Asia/Ulaanbaatar', 'REDIRECT_HANDLER' => 'application/x-httpd-ea-php80', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW5oaZF7z4Y0uNeiubk8gAAABg', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.205.5.65', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.205.5.65', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.205.5.65', 'DOCUMENT_ROOT' => '/home/upzonemn/public_html', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '/cgi-sys', 'CONTEXT_DOCUMENT_ROOT' => '/usr/local/cpanel/cgi-sys/', 'SERVER_ADMIN' => 'webmaster@upzone.mn', 'SCRIPT_FILENAME' => '/home/upzonemn/public_html/webroot/index.php', 'REMOTE_PORT' => '36088', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&1=25&2=177&3=178', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&1=25&2=177&3=178', 'REQUEST_URI' => '/categories?0=23&1=25&2=177&3=178', 'SCRIPT_NAME' => '/webroot/index.php', 'ORIG_SCRIPT_FILENAME' => '/usr/local/cpanel/cgi-sys/ea-php80', 'ORIG_PATH_INFO' => '/webroot/index.php', 'ORIG_PATH_TRANSLATED' => '/home/upzonemn/public_html/webroot/index.php', 'ORIG_SCRIPT_NAME' => '/cgi-sys/ea-php80', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711651233.6408, 'REQUEST_TIME' => (int) 1711651233, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], '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] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&1=25&2=177&3=178' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&1=25&2=177&3=178' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true } object(Cake\Http\Runner) { [protected] queue => object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 6 [protected] queue => [ [maximum depth reached] ] } [protected] fallbackHandler => object(App\Application) { [protected] configDir => '/home/upzonemn/public_html/config/' [protected] plugins => object(Cake\Core\PluginCollection) {} [protected] controllerFactory => object(Cake\Controller\ControllerFactory) {} [protected] _eventManager => object(Cake\Event\EventManager) {} [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. |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'TZ' => 'Asia/Ulaanbaatar', 'REDIRECT_HANDLER' => 'application/x-httpd-ea-php80', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW5oaZF7z4Y0uNeiubk8gAAABg', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.205.5.65', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.205.5.65', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.205.5.65', 'DOCUMENT_ROOT' => '/home/upzonemn/public_html', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '/cgi-sys', 'CONTEXT_DOCUMENT_ROOT' => '/usr/local/cpanel/cgi-sys/', 'SERVER_ADMIN' => 'webmaster@upzone.mn', 'SCRIPT_FILENAME' => '/home/upzonemn/public_html/webroot/index.php', 'REMOTE_PORT' => '36088', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&1=25&2=177&3=178', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&1=25&2=177&3=178', 'REQUEST_URI' => '/categories?0=23&1=25&2=177&3=178', 'SCRIPT_NAME' => '/webroot/index.php', 'ORIG_SCRIPT_FILENAME' => '/usr/local/cpanel/cgi-sys/ea-php80', 'ORIG_PATH_INFO' => '/webroot/index.php', 'ORIG_PATH_TRANSLATED' => '/home/upzonemn/public_html/webroot/index.php', 'ORIG_SCRIPT_NAME' => '/cgi-sys/ea-php80', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711651233.6408, 'REQUEST_TIME' => (int) 1711651233, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], '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] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&1=25&2=177&3=178' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&1=25&2=177&3=178' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true }
} |
|
|
|
$this->dispatchEvent('Server.buildMiddleware', ['middleware' => $middleware]); |
|
|
|
$response = $this->runner->run($middleware, $request, $this->app); |
|
|
|
if ($request instanceof ServerRequest) { |
|
$request->getSession()->close(); |
|
} |
object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 6 [protected] queue => [ (int) 0 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) {}, (int) 1 => object(Cake\Routing\Middleware\AssetMiddleware) {}, (int) 2 => object(Cake\Routing\Middleware\RoutingMiddleware) {}, (int) 3 => object(Authentication\Middleware\AuthenticationMiddleware) {}, (int) 4 => object(Authorization\Middleware\AuthorizationMiddleware) {}, (int) 5 => object(Cake\Http\Middleware\DoublePassDecoratorMiddleware) {} ] } object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [ (int) 0 => '23', (int) 1 => '25', (int) 2 => '177', (int) 3 => '178' ] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'TZ' => 'Asia/Ulaanbaatar', 'REDIRECT_HANDLER' => 'application/x-httpd-ea-php80', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW5oaZF7z4Y0uNeiubk8gAAABg', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.205.5.65', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.205.5.65', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.205.5.65', 'DOCUMENT_ROOT' => '/home/upzonemn/public_html', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '/cgi-sys', 'CONTEXT_DOCUMENT_ROOT' => '/usr/local/cpanel/cgi-sys/', 'SERVER_ADMIN' => 'webmaster@upzone.mn', 'SCRIPT_FILENAME' => '/home/upzonemn/public_html/webroot/index.php', 'REMOTE_PORT' => '36088', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&1=25&2=177&3=178', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&1=25&2=177&3=178', 'REQUEST_URI' => '/categories?0=23&1=25&2=177&3=178', 'SCRIPT_NAME' => '/webroot/index.php', 'ORIG_SCRIPT_FILENAME' => '/usr/local/cpanel/cgi-sys/ea-php80', 'ORIG_PATH_INFO' => '/webroot/index.php', 'ORIG_PATH_TRANSLATED' => '/home/upzonemn/public_html/webroot/index.php', 'ORIG_SCRIPT_NAME' => '/cgi-sys/ea-php80', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711651233.6408, 'REQUEST_TIME' => (int) 1711651233, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], '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] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&1=25&2=177&3=178' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&1=25&2=177&3=178' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true } object(App\Application) { [protected] configDir => '/home/upzonemn/public_html/config/' [protected] plugins => object(Cake\Core\PluginCollection) { [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) { } [protected] _eventManager => object(Cake\Event\EventManager) { '_listeners' => [[maximum depth reached]], '_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()); |
|
|
No arguments
Some of the Table objects in your application were created by instantiating "Cake\ORM\Table" instead of any other specific subclass.
This could be the cause for this exception. Auto-Tables are created for you under the following circumstances:
Please try correcting the issue for the following table aliases:
If you want to customize this error message, create templates/Error/error500.php