public function getAssociation(string $name): Association |
|
{ |
|
$association = $this->findAssociation($name); |
|
if (!$association) { |
|
throw new InvalidArgumentException("The {$name} association is not defined on {$this->getAlias()}."); |
|
} |
|
|
|
return $association; |
|
} |
*/ |
|
protected function _normalizeContain(Table $parent, string $alias, array $options, array $paths): EagerLoadable |
|
{ |
|
$defaults = $this->_containOptions; |
|
$instance = $parent->getAssociation($alias); |
|
|
|
$paths += ['aliasPath' => '', 'propertyPath' => '', 'root' => $alias]; |
|
$paths['aliasPath'] .= '.' . $alias; |
|
|
'Brands'
$contain[$alias] = $this->_normalizeContain( |
|
$repository, |
|
$alias, |
|
$options, |
|
['root' => null] |
|
); |
|
} |
|
|
|
return $this->_normalized = $contain; |
object(App\Model\Table\ProductsTable) { 'registryAlias' => 'Products', 'table' => 'products', 'alias' => 'Products', 'entityClass' => 'App\Model\Entity\Product', 'associations' => [ (int) 0 => 'statuses', (int) 1 => 'categories', (int) 2 => 'colors', (int) 3 => 'photos' ], 'behaviors' => [ (int) 0 => 'Timestamp' ], 'defaultConnection' => 'default', 'connectionName' => 'default' } 'Brands' [] [ 'root' => null ]
* @return \Cake\ORM\EagerLoadable[] |
|
*/ |
|
public function attachableAssociations(Table $repository): array |
|
{ |
|
$contain = $this->normalized($repository); |
|
$matching = $this->_matching ? $this->_matching->normalized($repository) : []; |
|
$this->_fixStrategies(); |
|
$this->_loadExternal = []; |
|
|
object(App\Model\Table\ProductsTable) { 'registryAlias' => 'Products', 'table' => 'products', 'alias' => 'Products', 'entityClass' => 'App\Model\Entity\Product', 'associations' => [ (int) 0 => 'statuses', (int) 1 => 'categories', (int) 2 => 'colors', (int) 3 => 'photos' ], 'behaviors' => [ (int) 0 => 'Timestamp' ], 'defaultConnection' => 'default', 'connectionName' => 'default' }
if (empty($this->_containments) && $this->_matching === null) { |
|
return; |
|
} |
|
|
|
$attachable = $this->attachableAssociations($repository); |
|
$processed = []; |
|
do { |
|
foreach ($attachable as $alias => $loadable) { |
|
$config = $loadable->getConfig() + [ |
object(App\Model\Table\ProductsTable) { 'registryAlias' => 'Products', 'table' => 'products', 'alias' => 'Products', 'entityClass' => 'App\Model\Entity\Product', 'associations' => [ (int) 0 => 'statuses', (int) 1 => 'categories', (int) 2 => 'colors', (int) 3 => 'photos' ], 'behaviors' => [ (int) 0 => 'Timestamp' ], 'defaultConnection' => 'default', 'connectionName' => 'default' }
if (empty($this->_parts['from'])) { |
|
$this->from([$repository->getAlias() => $repository->getTable()]); |
|
} |
|
$this->_addDefaultFields(); |
|
$this->getEagerLoader()->attachAssociations($this, $repository, !$this->_hasFields); |
|
$this->_addDefaultSelectTypes(); |
|
} |
|
|
|
/** |
object(Cake\ORM\Query) { (unable to export object: The Brands association is not defined on Products.) } object(App\Model\Table\ProductsTable) { 'registryAlias' => 'Products', 'table' => 'products', 'alias' => 'Products', 'entityClass' => 'App\Model\Entity\Product', 'associations' => [ (int) 0 => 'statuses', (int) 1 => 'categories', (int) 2 => 'colors', (int) 3 => 'photos' ], 'behaviors' => [ (int) 0 => 'Timestamp' ], 'defaultConnection' => 'default', 'connectionName' => 'default' } true
public function sql(?ValueBinder $binder = null): string |
|
{ |
|
$this->triggerBeforeFind(); |
|
|
|
$this->_transformQuery(); |
|
|
|
return parent::sql($binder); |
|
} |
|
|
No arguments
/** |
|
* @psalm-suppress PossiblyInvalidMethodCall |
|
* @psalm-suppress PossiblyInvalidArgument |
|
*/ |
|
$statement = $this->_connection->prepare($isObject ? $query->sql() : $query); |
|
$result = new MysqlStatement($statement, $this); |
|
/** @psalm-suppress PossiblyInvalidMethodCall */ |
|
if ($isObject && $query->isBufferedResultsEnabled() === false) { |
|
$result->bufferResults(false); |
No arguments
*/ |
|
public function prepare($sql): StatementInterface |
|
{ |
|
return $this->getDisconnectRetry()->run(function () use ($sql) { |
|
$statement = $this->_driver->prepare($sql); |
|
|
|
if ($this->_logQueries) { |
|
$statement = $this->_newLogger($statement); |
|
} |
object(Cake\ORM\Query) { (unable to export object: The Brands association is not defined on Products.) }
$lastException = null; |
|
|
|
do { |
|
try { |
|
return $action(); |
|
} catch (Exception $e) { |
|
$lastException = $e; |
|
if (!$this->strategy->shouldRetry($e, $retryCount)) { |
|
throw $e; |
No arguments
$statement = $this->_newLogger($statement); |
|
} |
|
|
|
return $statement; |
|
}); |
|
} |
|
|
|
/** |
|
* Executes a query using $params for interpolating values and $types as a hint for each |
object(Closure) { }
*/ |
|
public function run(Query $query): StatementInterface |
|
{ |
|
return $this->getDisconnectRetry()->run(function () use ($query) { |
|
$statement = $this->prepare($query); |
|
$query->getValueBinder()->attachTo($statement); |
|
$statement->execute(); |
|
|
|
return $statement; |
object(Cake\ORM\Query) { (unable to export object: The Brands association is not defined on Products.) }
$lastException = null; |
|
|
|
do { |
|
try { |
|
return $action(); |
|
} catch (Exception $e) { |
|
$lastException = $e; |
|
if (!$this->strategy->shouldRetry($e, $retryCount)) { |
|
throw $e; |
No arguments
$query->getValueBinder()->attachTo($statement); |
|
$statement->execute(); |
|
|
|
return $statement; |
|
}); |
|
} |
|
|
|
/** |
|
* Executes a SQL statement and returns the Statement object as result. |
object(Closure) { }
* @return \Cake\Database\StatementInterface |
|
*/ |
|
public function execute(): StatementInterface |
|
{ |
|
$statement = $this->_connection->run($this); |
|
$this->_iterator = $this->_decorateStatement($statement); |
|
$this->_dirty = false; |
|
|
|
return $this->_iterator; |
object(Cake\ORM\Query) { (unable to export object: The Brands association is not defined on Products.) }
|
|
return new $decorator($this->_results); |
|
} |
|
|
|
$statement = $this->getEagerLoader()->loadExternal($this, $this->execute()); |
|
|
|
return new ResultSet($this, $statement); |
|
} |
|
|
No arguments
if ($this->_cache) { |
|
$results = $this->_cache->fetch($this); |
|
} |
|
if (!isset($results)) { |
|
$results = $this->_decorateResults($this->_execute()); |
|
if ($this->_cache) { |
|
$this->_cache->store($this, $results); |
|
} |
|
} |
No arguments
'You cannot call all() on a non-select query. Use execute() instead.' |
|
); |
|
} |
|
|
|
return $this->_all(); |
|
} |
|
|
|
/** |
|
* Trigger the beforeFind event on the query's repository object. |
No arguments
if ($this->_dirty) { |
|
$this->limit(1); |
|
} |
|
|
|
return $this->all()->first(); |
|
} |
|
|
|
/** |
|
* Get the first result from the executing query or raise an exception. |
No arguments
* @return \Cake\Datasource\EntityInterface|array The first result from the ResultSet. |
|
*/ |
|
public function firstOrFail() |
|
{ |
|
$entity = $this->first(); |
|
if (!$entity) { |
|
/** @var \Cake\ORM\Table $table */ |
|
$table = $this->getRepository(); |
|
throw new RecordNotFoundException(sprintf( |
No arguments
$query->cache($cacheKey, $cacheConfig); |
|
} |
|
|
|
/** @psalm-suppress InvalidReturnStatement */ |
|
return $query->firstOrFail(); |
|
} |
|
|
|
/** |
|
* Handles the logic executing of a worker inside a transaction. |
No arguments
*/ |
|
public function view($id = null) |
|
{ |
|
$product = $this->Products->get($id, [ |
|
'contain' => ['Statuses', 'Brands', 'Categories', 'Phones' => ['Colors'], 'Colors'], |
|
]); |
|
|
|
$this->set('product', $product); |
|
} |
[ (int) 0 => '54' ] [ 'contain' => [ (int) 0 => 'Statuses', (int) 1 => 'Brands', (int) 2 => 'Categories', 'Phones' => [ (int) 0 => 'Colors' ], (int) 3 => 'Colors' ] ]
* @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.', |
'54'
} |
|
|
|
$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 => '54' ]
} |
|
|
|
$controller = $this->controllerFactory->create($request); |
|
|
|
return $this->controllerFactory->invoke($controller); |
|
} |
|
} |
|
|
object(App\Controller\ProductsController) { paginate => [] 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] ] } Products => object(App\Model\Table\ProductsTable) { 'registryAlias' => 'Products', 'table' => 'products', 'alias' => 'Products', 'entityClass' => 'App\Model\Entity\Product', 'associations' => [ [maximum depth reached] ], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } [protected] name => 'Products' [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\ProductsController) {}, '_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 => 'Products' [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' => 'Products', 'action' => 'view', 'pass' => [ (int) 0 => '54' ], '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' => 'ZgYpwmbZ7UyEF8svrA9AmQAAAA4', 'SCRIPT_URL' => '/products/view/54', 'SCRIPT_URI' => 'http://upzone.mn/products/view/54', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.212.50.220', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.212.50.220', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.212.50.220', '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' => '48948', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/products/view/54', '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) 1711679938.3775, 'REQUEST_TIME' => (int) 1711679938, '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 => '/products/view/54' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/products/view/54' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'b7ba7580e5035f5fc133ea1d42e2613bf96a0f25b8314ed4d83f8afd7b9f7869e11f9de04bb3ba5904362a49654848234ac253c4f05c9cbeec2fa9507f645b16', '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' => 'Products', 'action' => 'view', 'pass' => [ (int) 0 => '54' ], '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' => 'ZgYpwmbZ7UyEF8svrA9AmQAAAA4', 'SCRIPT_URL' => '/products/view/54', 'SCRIPT_URI' => 'http://upzone.mn/products/view/54', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.212.50.220', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.212.50.220', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.212.50.220', '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' => '48948', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/products/view/54', '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) 1711679938.3775, 'REQUEST_TIME' => (int) 1711679938, '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 => '/products/view/54' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/products/view/54' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'b7ba7580e5035f5fc133ea1d42e2613bf96a0f25b8314ed4d83f8afd7b9f7869e11f9de04bb3ba5904362a49654848234ac253c4f05c9cbeec2fa9507f645b16', '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' => 'Products', 'action' => 'view', 'pass' => [ (int) 0 => '54' ], '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' => 'ZgYpwmbZ7UyEF8svrA9AmQAAAA4', 'SCRIPT_URL' => '/products/view/54', 'SCRIPT_URI' => 'http://upzone.mn/products/view/54', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.212.50.220', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.212.50.220', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.212.50.220', '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' => '48948', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/products/view/54', '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) 1711679938.3775, 'REQUEST_TIME' => (int) 1711679938, '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 => '/products/view/54' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/products/view/54' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'b7ba7580e5035f5fc133ea1d42e2613bf96a0f25b8314ed4d83f8afd7b9f7869e11f9de04bb3ba5904362a49654848234ac253c4f05c9cbeec2fa9507f645b16', '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' => 'Products', 'action' => 'view', 'pass' => [ (int) 0 => '54' ], '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' => 'ZgYpwmbZ7UyEF8svrA9AmQAAAA4', 'SCRIPT_URL' => '/products/view/54', 'SCRIPT_URI' => 'http://upzone.mn/products/view/54', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.212.50.220', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.212.50.220', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.212.50.220', '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' => '48948', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/products/view/54', '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) 1711679938.3775, 'REQUEST_TIME' => (int) 1711679938, '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 => '/products/view/54' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/products/view/54' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'b7ba7580e5035f5fc133ea1d42e2613bf96a0f25b8314ed4d83f8afd7b9f7869e11f9de04bb3ba5904362a49654848234ac253c4f05c9cbeec2fa9507f645b16', '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' => 'Products', 'action' => 'view', 'pass' => [ (int) 0 => '54' ], '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' => 'ZgYpwmbZ7UyEF8svrA9AmQAAAA4', 'SCRIPT_URL' => '/products/view/54', 'SCRIPT_URI' => 'http://upzone.mn/products/view/54', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.212.50.220', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.212.50.220', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.212.50.220', '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' => '48948', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/products/view/54', '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) 1711679938.3775, 'REQUEST_TIME' => (int) 1711679938, '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 => '/products/view/54' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/products/view/54' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'b7ba7580e5035f5fc133ea1d42e2613bf96a0f25b8314ed4d83f8afd7b9f7869e11f9de04bb3ba5904362a49654848234ac253c4f05c9cbeec2fa9507f645b16', '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' => 'Products', 'action' => 'view', 'pass' => [ (int) 0 => '54' ], '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' => 'ZgYpwmbZ7UyEF8svrA9AmQAAAA4', 'SCRIPT_URL' => '/products/view/54', 'SCRIPT_URI' => 'http://upzone.mn/products/view/54', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.212.50.220', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.212.50.220', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.212.50.220', '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' => '48948', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/products/view/54', '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) 1711679938.3775, 'REQUEST_TIME' => (int) 1711679938, '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 => '/products/view/54' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/products/view/54' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'b7ba7580e5035f5fc133ea1d42e2613bf96a0f25b8314ed4d83f8afd7b9f7869e11f9de04bb3ba5904362a49654848234ac253c4f05c9cbeec2fa9507f645b16', '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' => 'Products', 'action' => 'view', 'pass' => [ (int) 0 => '54' ], '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' => 'ZgYpwmbZ7UyEF8svrA9AmQAAAA4', 'SCRIPT_URL' => '/products/view/54', 'SCRIPT_URI' => 'http://upzone.mn/products/view/54', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.212.50.220', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.212.50.220', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.212.50.220', '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' => '48948', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/products/view/54', '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) 1711679938.3775, 'REQUEST_TIME' => (int) 1711679938, '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 => '/products/view/54' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/products/view/54' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'b7ba7580e5035f5fc133ea1d42e2613bf96a0f25b8314ed4d83f8afd7b9f7869e11f9de04bb3ba5904362a49654848234ac253c4f05c9cbeec2fa9507f645b16', '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' => 'Products', 'action' => 'view', 'pass' => [ (int) 0 => '54' ], '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' => 'ZgYpwmbZ7UyEF8svrA9AmQAAAA4', 'SCRIPT_URL' => '/products/view/54', 'SCRIPT_URI' => 'http://upzone.mn/products/view/54', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.212.50.220', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.212.50.220', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.212.50.220', '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' => '48948', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/products/view/54', '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) 1711679938.3775, 'REQUEST_TIME' => (int) 1711679938, '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 => '/products/view/54' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/products/view/54' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'b7ba7580e5035f5fc133ea1d42e2613bf96a0f25b8314ed4d83f8afd7b9f7869e11f9de04bb3ba5904362a49654848234ac253c4f05c9cbeec2fa9507f645b16', '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' => 'Products', 'action' => 'view', 'pass' => [ (int) 0 => '54' ], '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' => 'ZgYpwmbZ7UyEF8svrA9AmQAAAA4', 'SCRIPT_URL' => '/products/view/54', 'SCRIPT_URI' => 'http://upzone.mn/products/view/54', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.212.50.220', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.212.50.220', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.212.50.220', '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' => '48948', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/products/view/54', '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) 1711679938.3775, 'REQUEST_TIME' => (int) 1711679938, '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 => '/products/view/54' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/products/view/54' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'b7ba7580e5035f5fc133ea1d42e2613bf96a0f25b8314ed4d83f8afd7b9f7869e11f9de04bb3ba5904362a49654848234ac253c4f05c9cbeec2fa9507f645b16', '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' => 'Products', 'action' => 'view', 'pass' => [ (int) 0 => '54' ], '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' => 'ZgYpwmbZ7UyEF8svrA9AmQAAAA4', 'SCRIPT_URL' => '/products/view/54', 'SCRIPT_URI' => 'http://upzone.mn/products/view/54', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.212.50.220', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.212.50.220', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.212.50.220', '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' => '48948', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/products/view/54', '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) 1711679938.3775, 'REQUEST_TIME' => (int) 1711679938, '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 => '/products/view/54' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/products/view/54' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'b7ba7580e5035f5fc133ea1d42e2613bf96a0f25b8314ed4d83f8afd7b9f7869e11f9de04bb3ba5904362a49654848234ac253c4f05c9cbeec2fa9507f645b16' ] [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' => 'Products', 'action' => 'view', 'pass' => [ (int) 0 => '54' ], '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' => 'ZgYpwmbZ7UyEF8svrA9AmQAAAA4', 'SCRIPT_URL' => '/products/view/54', 'SCRIPT_URI' => 'http://upzone.mn/products/view/54', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.212.50.220', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.212.50.220', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.212.50.220', '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' => '48948', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/products/view/54', '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) 1711679938.3775, 'REQUEST_TIME' => (int) 1711679938, '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 => '/products/view/54' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/products/view/54' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'b7ba7580e5035f5fc133ea1d42e2613bf96a0f25b8314ed4d83f8afd7b9f7869e11f9de04bb3ba5904362a49654848234ac253c4f05c9cbeec2fa9507f645b16' ] [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' => 'Products', 'action' => 'view', 'pass' => [ (int) 0 => '54' ], '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' => 'ZgYpwmbZ7UyEF8svrA9AmQAAAA4', 'SCRIPT_URL' => '/products/view/54', 'SCRIPT_URI' => 'http://upzone.mn/products/view/54', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.212.50.220', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.212.50.220', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.212.50.220', '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' => '48948', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/products/view/54', '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) 1711679938.3775, 'REQUEST_TIME' => (int) 1711679938, '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 => '/products/view/54' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/products/view/54' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => 'b7ba7580e5035f5fc133ea1d42e2613bf96a0f25b8314ed4d83f8afd7b9f7869e11f9de04bb3ba5904362a49654848234ac253c4f05c9cbeec2fa9507f645b16' ] [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' => 'Products', 'action' => 'view', 'pass' => [ (int) 0 => '54' ], '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' => 'ZgYpwmbZ7UyEF8svrA9AmQAAAA4', 'SCRIPT_URL' => '/products/view/54', 'SCRIPT_URI' => 'http://upzone.mn/products/view/54', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.212.50.220', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.212.50.220', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.212.50.220', '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' => '48948', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/products/view/54', '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) 1711679938.3775, 'REQUEST_TIME' => (int) 1711679938, '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 => '/products/view/54' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/products/view/54' } [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' => 'Products', 'action' => 'view', 'pass' => [ (int) 0 => '54' ], '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' => 'ZgYpwmbZ7UyEF8svrA9AmQAAAA4', 'SCRIPT_URL' => '/products/view/54', 'SCRIPT_URI' => 'http://upzone.mn/products/view/54', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.212.50.220', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.212.50.220', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.212.50.220', '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' => '48948', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/products/view/54', '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) 1711679938.3775, 'REQUEST_TIME' => (int) 1711679938, '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 => '/products/view/54' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/products/view/54' } [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' => 'Products', 'action' => 'view', 'pass' => [ (int) 0 => '54' ], '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' => 'ZgYpwmbZ7UyEF8svrA9AmQAAAA4', 'SCRIPT_URL' => '/products/view/54', 'SCRIPT_URI' => 'http://upzone.mn/products/view/54', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.212.50.220', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.212.50.220', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.212.50.220', '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' => '48948', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/products/view/54', '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) 1711679938.3775, 'REQUEST_TIME' => (int) 1711679938, '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 => '/products/view/54' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/products/view/54' } [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' => 'ZgYpwmbZ7UyEF8svrA9AmQAAAA4', 'SCRIPT_URL' => '/products/view/54', 'SCRIPT_URI' => 'http://upzone.mn/products/view/54', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.212.50.220', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.212.50.220', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.212.50.220', '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' => '48948', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/products/view/54', '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) 1711679938.3775, 'REQUEST_TIME' => (int) 1711679938, '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 => '/products/view/54' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/products/view/54' } [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' => 'ZgYpwmbZ7UyEF8svrA9AmQAAAA4', 'SCRIPT_URL' => '/products/view/54', 'SCRIPT_URI' => 'http://upzone.mn/products/view/54', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.212.50.220', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.212.50.220', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.212.50.220', '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' => '48948', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/products/view/54', '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) 1711679938.3775, 'REQUEST_TIME' => (int) 1711679938, '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 => '/products/view/54' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/products/view/54' } [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' => 'ZgYpwmbZ7UyEF8svrA9AmQAAAA4', 'SCRIPT_URL' => '/products/view/54', 'SCRIPT_URI' => 'http://upzone.mn/products/view/54', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.212.50.220', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.212.50.220', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.212.50.220', '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' => '48948', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/products/view/54', '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) 1711679938.3775, 'REQUEST_TIME' => (int) 1711679938, '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 => '/products/view/54' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/products/view/54' } [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' => 'ZgYpwmbZ7UyEF8svrA9AmQAAAA4', 'SCRIPT_URL' => '/products/view/54', 'SCRIPT_URI' => 'http://upzone.mn/products/view/54', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.212.50.220', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.212.50.220', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.212.50.220', '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' => '48948', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/products/view/54', '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) 1711679938.3775, 'REQUEST_TIME' => (int) 1711679938, '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 => '/products/view/54' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/products/view/54' } [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' => 'ZgYpwmbZ7UyEF8svrA9AmQAAAA4', 'SCRIPT_URL' => '/products/view/54', 'SCRIPT_URI' => 'http://upzone.mn/products/view/54', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.212.50.220', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.212.50.220', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.212.50.220', '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' => '48948', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/products/view/54', '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) 1711679938.3775, 'REQUEST_TIME' => (int) 1711679938, '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 => '/products/view/54' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/products/view/54' } [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' => 'ZgYpwmbZ7UyEF8svrA9AmQAAAA4', 'SCRIPT_URL' => '/products/view/54', 'SCRIPT_URI' => 'http://upzone.mn/products/view/54', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '44.212.50.220', 'HTTP_X_FORWARDED_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'upzone.mn', 'HTTP_X_REAL_IP' => '44.212.50.220', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'upzone.mn', 'SERVER_ADDR' => '43.231.112.50', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '44.212.50.220', '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' => '48948', 'REDIRECT_URL' => '/webroot/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/products/view/54', '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) 1711679938.3775, 'REQUEST_TIME' => (int) 1711679938, '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 => '/products/view/54' [private] query => '' [private] fragment => '' [private] uriString => 'http://upzone.mn/products/view/54' } [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