$entity = $this->first(); |
|
if (!$entity) { |
|
/** @var \Cake\ORM\Table $table */ |
|
$table = $this->getRepository(); |
|
throw new RecordNotFoundException(sprintf( |
|
'Record not found in table "%s"', |
|
$table->getTable() |
|
)); |
|
} |
$query->cache($cacheKey, $cacheConfig); |
|
} |
|
|
|
/** @psalm-suppress InvalidReturnStatement */ |
|
return $query->firstOrFail(); |
|
} |
|
|
|
/** |
|
* Handles the logic executing of a worker inside a transaction. |
No arguments
* @throws \BadMethodCallException |
|
*/ |
|
public function __call($method, $argument) |
|
{ |
|
return $this->getTarget()->$method(...$argument); |
|
} |
|
|
|
/** |
|
* Get the relationship type. |
[ (int) 0 => '119' ] [ 'contain' => [ (int) 0 => 'Statuses', (int) 1 => 'Colors', 'Categories' => [ (int) 0 => 'Specifications', 'ParentCategories' => [ (int) 0 => 'ParentCategories' ], 'Photos' => [ (int) 0 => 'Colors' ] ] ] ]
public function view($id = null) |
|
{ |
|
// 'contain' => ['ParentCategories', 'Categories_title_translation', 'Specifications', 'I18n', 'ChildCategories', 'Photos', 'Products'], |
|
$product = $this->Categories->Products->get($id, [ |
|
'contain' => ['Statuses', 'Colors', 'Categories' => [ |
|
'Specifications', |
|
'ParentCategories' => [ |
|
'ParentCategories' |
|
], |
'get' [ (int) 0 => '119', (int) 1 => [ 'contain' => [ (int) 0 => 'Statuses', (int) 1 => 'Colors', 'Categories' => [ (int) 0 => 'Specifications', 'ParentCategories' => [ [maximum depth reached] ], 'Photos' => [ [maximum depth reached] ] ] ] ] ]
* @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.', |
'119'
} |
|
|
|
$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) { } [ (int) 0 => '119' ]
} |
|
|
|
$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', 'action' => 'view', 'pass' => [ (int) 0 => '119' ], 'plugin' => null, '_matchedRoute' => '/{controller}/{action}/*', '_ext' => null ] [protected] data => [] [protected] query => [] [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' => 'ZgXq_0PxFkFEw2GbkcAq-AAAADA', 'SCRIPT_URL' => '/categories/view/119', 'SCRIPT_URI' => 'http://upzone.mn/categories/view/119', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '54.205.116.187', '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' => '54.205.116.187', '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' => '54.205.116.187', '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' => '46720', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/categories/view/119', '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) 1711663871.9842, 'REQUEST_TIME' => (int) 1711663871, '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/view/119' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories/view/119' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'b03a4765045bc8d36dfa1daac1abdbaf1703a7c275bfa49237b95428239c45bdf3cd14b2033b4ed63d546ac31902986a770b5fc33e4e96d7baf3af5d7bc2c146', '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', 'action' => 'view', 'pass' => [ (int) 0 => '119' ], 'plugin' => null, '_matchedRoute' => '/{controller}/{action}/*', '_ext' => null ] [protected] data => [] [protected] query => [] [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' => 'ZgXq_0PxFkFEw2GbkcAq-AAAADA', 'SCRIPT_URL' => '/categories/view/119', 'SCRIPT_URI' => 'http://upzone.mn/categories/view/119', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '54.205.116.187', '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' => '54.205.116.187', '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' => '54.205.116.187', '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' => '46720', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/categories/view/119', '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) 1711663871.9842, 'REQUEST_TIME' => (int) 1711663871, '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/view/119' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories/view/119' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'b03a4765045bc8d36dfa1daac1abdbaf1703a7c275bfa49237b95428239c45bdf3cd14b2033b4ed63d546ac31902986a770b5fc33e4e96d7baf3af5d7bc2c146', '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', 'action' => 'view', 'pass' => [ (int) 0 => '119' ], 'plugin' => null, '_matchedRoute' => '/{controller}/{action}/*', '_ext' => null ] [protected] data => [] [protected] query => [] [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' => 'ZgXq_0PxFkFEw2GbkcAq-AAAADA', 'SCRIPT_URL' => '/categories/view/119', 'SCRIPT_URI' => 'http://upzone.mn/categories/view/119', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '54.205.116.187', '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' => '54.205.116.187', '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' => '54.205.116.187', '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' => '46720', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/categories/view/119', '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) 1711663871.9842, 'REQUEST_TIME' => (int) 1711663871, '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/view/119' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories/view/119' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'b03a4765045bc8d36dfa1daac1abdbaf1703a7c275bfa49237b95428239c45bdf3cd14b2033b4ed63d546ac31902986a770b5fc33e4e96d7baf3af5d7bc2c146', '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', 'action' => 'view', 'pass' => [ (int) 0 => '119' ], 'plugin' => null, '_matchedRoute' => '/{controller}/{action}/*', '_ext' => null ] [protected] data => [] [protected] query => [] [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' => 'ZgXq_0PxFkFEw2GbkcAq-AAAADA', 'SCRIPT_URL' => '/categories/view/119', 'SCRIPT_URI' => 'http://upzone.mn/categories/view/119', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '54.205.116.187', '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' => '54.205.116.187', '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' => '54.205.116.187', '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' => '46720', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/categories/view/119', '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) 1711663871.9842, 'REQUEST_TIME' => (int) 1711663871, '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/view/119' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories/view/119' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'b03a4765045bc8d36dfa1daac1abdbaf1703a7c275bfa49237b95428239c45bdf3cd14b2033b4ed63d546ac31902986a770b5fc33e4e96d7baf3af5d7bc2c146', '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', 'action' => 'view', 'pass' => [ (int) 0 => '119' ], 'plugin' => null, '_matchedRoute' => '/{controller}/{action}/*', '_ext' => null ] [protected] data => [] [protected] query => [] [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' => 'ZgXq_0PxFkFEw2GbkcAq-AAAADA', 'SCRIPT_URL' => '/categories/view/119', 'SCRIPT_URI' => 'http://upzone.mn/categories/view/119', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '54.205.116.187', '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' => '54.205.116.187', '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' => '54.205.116.187', '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' => '46720', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/categories/view/119', '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) 1711663871.9842, 'REQUEST_TIME' => (int) 1711663871, '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/view/119' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories/view/119' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'b03a4765045bc8d36dfa1daac1abdbaf1703a7c275bfa49237b95428239c45bdf3cd14b2033b4ed63d546ac31902986a770b5fc33e4e96d7baf3af5d7bc2c146', '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', 'action' => 'view', 'pass' => [ (int) 0 => '119' ], 'plugin' => null, '_matchedRoute' => '/{controller}/{action}/*', '_ext' => null ] [protected] data => [] [protected] query => [] [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' => 'ZgXq_0PxFkFEw2GbkcAq-AAAADA', 'SCRIPT_URL' => '/categories/view/119', 'SCRIPT_URI' => 'http://upzone.mn/categories/view/119', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '54.205.116.187', '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' => '54.205.116.187', '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' => '54.205.116.187', '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' => '46720', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/categories/view/119', '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) 1711663871.9842, 'REQUEST_TIME' => (int) 1711663871, '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/view/119' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories/view/119' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'b03a4765045bc8d36dfa1daac1abdbaf1703a7c275bfa49237b95428239c45bdf3cd14b2033b4ed63d546ac31902986a770b5fc33e4e96d7baf3af5d7bc2c146', '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', 'action' => 'view', 'pass' => [ (int) 0 => '119' ], 'plugin' => null, '_matchedRoute' => '/{controller}/{action}/*', '_ext' => null ] [protected] data => [] [protected] query => [] [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' => 'ZgXq_0PxFkFEw2GbkcAq-AAAADA', 'SCRIPT_URL' => '/categories/view/119', 'SCRIPT_URI' => 'http://upzone.mn/categories/view/119', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '54.205.116.187', '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' => '54.205.116.187', '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' => '54.205.116.187', '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' => '46720', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/categories/view/119', '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) 1711663871.9842, 'REQUEST_TIME' => (int) 1711663871, '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/view/119' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories/view/119' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'b03a4765045bc8d36dfa1daac1abdbaf1703a7c275bfa49237b95428239c45bdf3cd14b2033b4ed63d546ac31902986a770b5fc33e4e96d7baf3af5d7bc2c146', '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', 'action' => 'view', 'pass' => [ (int) 0 => '119' ], 'plugin' => null, '_matchedRoute' => '/{controller}/{action}/*', '_ext' => null ] [protected] data => [] [protected] query => [] [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' => 'ZgXq_0PxFkFEw2GbkcAq-AAAADA', 'SCRIPT_URL' => '/categories/view/119', 'SCRIPT_URI' => 'http://upzone.mn/categories/view/119', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '54.205.116.187', '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' => '54.205.116.187', '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' => '54.205.116.187', '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' => '46720', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/categories/view/119', '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) 1711663871.9842, 'REQUEST_TIME' => (int) 1711663871, '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/view/119' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories/view/119' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'b03a4765045bc8d36dfa1daac1abdbaf1703a7c275bfa49237b95428239c45bdf3cd14b2033b4ed63d546ac31902986a770b5fc33e4e96d7baf3af5d7bc2c146', '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', 'action' => 'view', 'pass' => [ (int) 0 => '119' ], 'plugin' => null, '_matchedRoute' => '/{controller}/{action}/*', '_ext' => null ] [protected] data => [] [protected] query => [] [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' => 'ZgXq_0PxFkFEw2GbkcAq-AAAADA', 'SCRIPT_URL' => '/categories/view/119', 'SCRIPT_URI' => 'http://upzone.mn/categories/view/119', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '54.205.116.187', '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' => '54.205.116.187', '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' => '54.205.116.187', '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' => '46720', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/categories/view/119', '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) 1711663871.9842, 'REQUEST_TIME' => (int) 1711663871, '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/view/119' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories/view/119' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'b03a4765045bc8d36dfa1daac1abdbaf1703a7c275bfa49237b95428239c45bdf3cd14b2033b4ed63d546ac31902986a770b5fc33e4e96d7baf3af5d7bc2c146', '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', 'action' => 'view', 'pass' => [ (int) 0 => '119' ], 'plugin' => null, '_matchedRoute' => '/{controller}/{action}/*', '_ext' => null ] [protected] data => [] [protected] query => [] [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' => 'ZgXq_0PxFkFEw2GbkcAq-AAAADA', 'SCRIPT_URL' => '/categories/view/119', 'SCRIPT_URI' => 'http://upzone.mn/categories/view/119', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '54.205.116.187', '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' => '54.205.116.187', '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' => '54.205.116.187', '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' => '46720', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/categories/view/119', '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) 1711663871.9842, 'REQUEST_TIME' => (int) 1711663871, '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/view/119' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories/view/119' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'b03a4765045bc8d36dfa1daac1abdbaf1703a7c275bfa49237b95428239c45bdf3cd14b2033b4ed63d546ac31902986a770b5fc33e4e96d7baf3af5d7bc2c146' ] [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', 'action' => 'view', 'pass' => [ (int) 0 => '119' ], 'plugin' => null, '_matchedRoute' => '/{controller}/{action}/*', '_ext' => null ] [protected] data => [] [protected] query => [] [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' => 'ZgXq_0PxFkFEw2GbkcAq-AAAADA', 'SCRIPT_URL' => '/categories/view/119', 'SCRIPT_URI' => 'http://upzone.mn/categories/view/119', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '54.205.116.187', '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' => '54.205.116.187', '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' => '54.205.116.187', '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' => '46720', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/categories/view/119', '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) 1711663871.9842, 'REQUEST_TIME' => (int) 1711663871, '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/view/119' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories/view/119' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'b03a4765045bc8d36dfa1daac1abdbaf1703a7c275bfa49237b95428239c45bdf3cd14b2033b4ed63d546ac31902986a770b5fc33e4e96d7baf3af5d7bc2c146' ] [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', 'action' => 'view', 'pass' => [ (int) 0 => '119' ], 'plugin' => null, '_matchedRoute' => '/{controller}/{action}/*', '_ext' => null ] [protected] data => [] [protected] query => [] [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' => 'ZgXq_0PxFkFEw2GbkcAq-AAAADA', 'SCRIPT_URL' => '/categories/view/119', 'SCRIPT_URI' => 'http://upzone.mn/categories/view/119', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '54.205.116.187', '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' => '54.205.116.187', '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' => '54.205.116.187', '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' => '46720', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/categories/view/119', '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) 1711663871.9842, 'REQUEST_TIME' => (int) 1711663871, '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/view/119' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories/view/119' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'b03a4765045bc8d36dfa1daac1abdbaf1703a7c275bfa49237b95428239c45bdf3cd14b2033b4ed63d546ac31902986a770b5fc33e4e96d7baf3af5d7bc2c146' ] [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', 'action' => 'view', 'pass' => [ (int) 0 => '119' ], 'plugin' => null, '_matchedRoute' => '/{controller}/{action}/*', '_ext' => null ] [protected] data => [] [protected] query => [] [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' => 'ZgXq_0PxFkFEw2GbkcAq-AAAADA', 'SCRIPT_URL' => '/categories/view/119', 'SCRIPT_URI' => 'http://upzone.mn/categories/view/119', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '54.205.116.187', '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' => '54.205.116.187', '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' => '54.205.116.187', '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' => '46720', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/categories/view/119', '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) 1711663871.9842, 'REQUEST_TIME' => (int) 1711663871, '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/view/119' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories/view/119' } [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', 'action' => 'view', 'pass' => [ (int) 0 => '119' ], 'plugin' => null, '_matchedRoute' => '/{controller}/{action}/*', '_ext' => null ] [protected] data => [] [protected] query => [] [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' => 'ZgXq_0PxFkFEw2GbkcAq-AAAADA', 'SCRIPT_URL' => '/categories/view/119', 'SCRIPT_URI' => 'http://upzone.mn/categories/view/119', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '54.205.116.187', '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' => '54.205.116.187', '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' => '54.205.116.187', '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' => '46720', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/categories/view/119', '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) 1711663871.9842, 'REQUEST_TIME' => (int) 1711663871, '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/view/119' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories/view/119' } [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', 'action' => 'view', 'pass' => [ (int) 0 => '119' ], 'plugin' => null, '_matchedRoute' => '/{controller}/{action}/*', '_ext' => null ] [protected] data => [] [protected] query => [] [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' => 'ZgXq_0PxFkFEw2GbkcAq-AAAADA', 'SCRIPT_URL' => '/categories/view/119', 'SCRIPT_URI' => 'http://upzone.mn/categories/view/119', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '54.205.116.187', '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' => '54.205.116.187', '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' => '54.205.116.187', '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' => '46720', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/categories/view/119', '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) 1711663871.9842, 'REQUEST_TIME' => (int) 1711663871, '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/view/119' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories/view/119' } [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 => [] [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' => 'ZgXq_0PxFkFEw2GbkcAq-AAAADA', 'SCRIPT_URL' => '/categories/view/119', 'SCRIPT_URI' => 'http://upzone.mn/categories/view/119', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '54.205.116.187', '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' => '54.205.116.187', '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' => '54.205.116.187', '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' => '46720', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/categories/view/119', '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) 1711663871.9842, 'REQUEST_TIME' => (int) 1711663871, '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/view/119' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories/view/119' } [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 => [] [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' => 'ZgXq_0PxFkFEw2GbkcAq-AAAADA', 'SCRIPT_URL' => '/categories/view/119', 'SCRIPT_URI' => 'http://upzone.mn/categories/view/119', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '54.205.116.187', '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' => '54.205.116.187', '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' => '54.205.116.187', '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' => '46720', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/categories/view/119', '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) 1711663871.9842, 'REQUEST_TIME' => (int) 1711663871, '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/view/119' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories/view/119' } [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 => [] [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' => 'ZgXq_0PxFkFEw2GbkcAq-AAAADA', 'SCRIPT_URL' => '/categories/view/119', 'SCRIPT_URI' => 'http://upzone.mn/categories/view/119', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '54.205.116.187', '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' => '54.205.116.187', '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' => '54.205.116.187', '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' => '46720', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/categories/view/119', '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) 1711663871.9842, 'REQUEST_TIME' => (int) 1711663871, '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/view/119' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories/view/119' } [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 => [] [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' => 'ZgXq_0PxFkFEw2GbkcAq-AAAADA', 'SCRIPT_URL' => '/categories/view/119', 'SCRIPT_URI' => 'http://upzone.mn/categories/view/119', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '54.205.116.187', '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' => '54.205.116.187', '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' => '54.205.116.187', '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' => '46720', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/categories/view/119', '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) 1711663871.9842, 'REQUEST_TIME' => (int) 1711663871, '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/view/119' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories/view/119' } [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 => [] [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' => 'ZgXq_0PxFkFEw2GbkcAq-AAAADA', 'SCRIPT_URL' => '/categories/view/119', 'SCRIPT_URI' => 'http://upzone.mn/categories/view/119', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '54.205.116.187', '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' => '54.205.116.187', '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' => '54.205.116.187', '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' => '46720', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/categories/view/119', '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) 1711663871.9842, 'REQUEST_TIME' => (int) 1711663871, '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/view/119' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories/view/119' } [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 => [] [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' => 'ZgXq_0PxFkFEw2GbkcAq-AAAADA', 'SCRIPT_URL' => '/categories/view/119', 'SCRIPT_URI' => 'http://upzone.mn/categories/view/119', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '54.205.116.187', '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' => '54.205.116.187', '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' => '54.205.116.187', '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' => '46720', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/categories/view/119', '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) 1711663871.9842, 'REQUEST_TIME' => (int) 1711663871, '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/view/119' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories/view/119' } [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