$this->_setPagingParams(); |
|
} catch (PageOutOfBoundsException $e) { |
|
$this->_setPagingParams(); |
|
|
|
throw new NotFoundException(null, null, $e); |
|
} |
|
|
|
return $results; |
|
} |
throw new RuntimeException('Unable to locate an object compatible with paginate.'); |
|
} |
|
$settings += $this->paginate; |
|
|
|
return $this->Paginator->paginate($table, $settings); |
|
} |
|
|
|
/** |
|
* Method to check that an action is accessible from a URL. |
object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT Products.id AS Products__id, Products.description AS Products__description, Products.status_id AS Products__status_id, Products.category_id AS Products__category_id, Products.color_id AS Products__color_id, Products.price AS Products__price, Products.sale AS Products__sale, Products.star AS Products__star, Products.created AS Products__created, Products.modified AS Products__modified, Statuses.id AS Statuses__id, Statuses.title AS Statuses__title, Categories.id AS Categories__id, Categories.title AS Categories__title, Categories.parent_id AS Categories__parent_id, Categories.lft AS Categories__lft, Categories.rght AS Categories__rght, Categories.level AS Categories__level, Categories.created AS Categories__created, Categories.modified AS Categories__modified, Categories.image AS Categories__image, Specifications.id AS Specifications__id, Specifications.title AS Specifications__title, Specifications.category_id AS Specifications__category_id, Specifications.cpu AS Specifications__cpu, Specifications.cpu_spec AS Specifications__cpu_spec, Specifications.gpu AS Specifications__gpu, Specifications.storage AS Specifications__storage, Specifications.removable AS Specifications__removable, Specifications.ram AS Specifications__ram, Specifications.os AS Specifications__os, Specifications.launcher AS Specifications__launcher, Specifications.dimensions AS Specifications__dimensions, Specifications.weight AS Specifications__weight, Specifications.battery AS Specifications__battery, Specifications.recharge AS Specifications__recharge, Specifications.display AS Specifications__display, Specifications.camera AS Specifications__camera, Specifications.finger AS Specifications__finger, Specifications.facial AS Specifications__facial, Specifications.keyboard AS Specifications__keyboard, Specifications.other AS Specifications__other, Specifications.year AS Specifications__year, Specifications.count AS Specifications__count, Specifications.visit AS Specifications__visit FROM products Products LEFT JOIN statuses Statuses ON Statuses.id = (Products.status_id) LEFT JOIN categories Categories ON Categories.id = (Products.category_id) LEFT JOIN specifications Specifications ON Categories.id = (Specifications.category_id) WHERE Products.category_id in (:c0,:c1,:c2,:c3,:c4,:c5,:c6,:c7,:c8,:c9,:c10,:c11,:c12,:c13,:c14,:c15,:c16,:c17,:c18,:c19,:c20,:c21,:c22,:c23,:c24,:c25,:c26,:c27,:c28,:c29,:c30,:c31,:c32,:c33,:c34,:c35,:c36,:c37,:c38,:c39,:c40,:c41,:c42,:c43,:c44,:c45,:c46,:c47,:c48,:c49,:c50,:c51,:c52,:c53,:c54,:c55,:c56,:c57,:c58,:c59,:c60,:c61,:c62,:c63,:c64) LIMIT 10 OFFSET 50', 'params' => [ ':c0' => [ 'value' => (int) 25, 'type' => 'integer', 'placeholder' => 'c0' ], ':c1' => [ 'value' => (int) 26, 'type' => 'integer', 'placeholder' => 'c1' ], ':c2' => [ 'value' => (int) 165, 'type' => 'integer', 'placeholder' => 'c2' ], ':c3' => [ 'value' => (int) 166, 'type' => 'integer', 'placeholder' => 'c3' ], ':c4' => [ 'value' => (int) 167, 'type' => 'integer', 'placeholder' => 'c4' ], ':c5' => [ 'value' => (int) 291, 'type' => 'integer', 'placeholder' => 'c5' ], ':c6' => [ 'value' => (int) 329, 'type' => 'integer', 'placeholder' => 'c6' ], ':c7' => [ 'value' => (int) 330, 'type' => 'integer', 'placeholder' => 'c7' ], ':c8' => [ 'value' => (int) 331, 'type' => 'integer', 'placeholder' => 'c8' ], ':c9' => [ 'value' => (int) 27, 'type' => 'integer', 'placeholder' => 'c9' ], ':c10' => [ 'value' => (int) 168, 'type' => 'integer', 'placeholder' => 'c10' ], ':c11' => [ 'value' => (int) 169, 'type' => 'integer', 'placeholder' => 'c11' ], ':c12' => [ 'value' => (int) 170, 'type' => 'integer', 'placeholder' => 'c12' ], ':c13' => [ 'value' => (int) 171, 'type' => 'integer', 'placeholder' => 'c13' ], ':c14' => [ 'value' => (int) 176, 'type' => 'integer', 'placeholder' => 'c14' ], ':c15' => [ 'value' => (int) 276, 'type' => 'integer', 'placeholder' => 'c15' ], ':c16' => [ 'value' => (int) 257, 'type' => 'integer', 'placeholder' => 'c16' ], ':c17' => [ 'value' => (int) 323, 'type' => 'integer', 'placeholder' => 'c17' ], ':c18' => [ 'value' => (int) 324, 'type' => 'integer', 'placeholder' => 'c18' ], ':c19' => [ 'value' => (int) 332, 'type' => 'integer', 'placeholder' => 'c19' ], ':c20' => [ 'value' => (int) 333, 'type' => 'integer', 'placeholder' => 'c20' ], ':c21' => [ 'value' => (int) 334, 'type' => 'integer', 'placeholder' => 'c21' ], ':c22' => [ 'value' => (int) 31, 'type' => 'integer', 'placeholder' => 'c22' ], ':c23' => [ 'value' => (int) 183, 'type' => 'integer', 'placeholder' => 'c23' ], ':c24' => [ 'value' => (int) 68, 'type' => 'integer', 'placeholder' => 'c24' ], ':c25' => [ 'value' => (int) 185, 'type' => 'integer', 'placeholder' => 'c25' ], ':c26' => [ 'value' => (int) 186, 'type' => 'integer', 'placeholder' => 'c26' ], ':c27' => [ 'value' => (int) 274, 'type' => 'integer', 'placeholder' => 'c27' ], ':c28' => [ 'value' => (int) 286, 'type' => 'integer', 'placeholder' => 'c28' ], ':c29' => [ 'value' => (int) 192, 'type' => 'integer', 'placeholder' => 'c29' ], ':c30' => [ 'value' => (int) 198, 'type' => 'integer', 'placeholder' => 'c30' ], ':c31' => [ 'value' => (int) 249, 'type' => 'integer', 'placeholder' => 'c31' ], ':c32' => [ 'value' => (int) 250, 'type' => 'integer', 'placeholder' => 'c32' ], ':c33' => [ 'value' => (int) 304, 'type' => 'integer', 'placeholder' => 'c33' ], ':c34' => [ 'value' => (int) 305, 'type' => 'integer', 'placeholder' => 'c34' ], ':c35' => [ 'value' => (int) 306, 'type' => 'integer', 'placeholder' => 'c35' ], ':c36' => [ 'value' => (int) 307, 'type' => 'integer', 'placeholder' => 'c36' ], ':c37' => [ 'value' => (int) 308, 'type' => 'integer', 'placeholder' => 'c37' ], ':c38' => [ 'value' => (int) 309, 'type' => 'integer', 'placeholder' => 'c38' ], ':c39' => [ 'value' => (int) 310, 'type' => 'integer', 'placeholder' => 'c39' ], ':c40' => [ 'value' => (int) 311, 'type' => 'integer', 'placeholder' => 'c40' ], ':c41' => [ 'value' => (int) 312, 'type' => 'integer', 'placeholder' => 'c41' ], ':c42' => [ 'value' => (int) 193, 'type' => 'integer', 'placeholder' => 'c42' ], ':c43' => [ 'value' => (int) 71, 'type' => 'integer', 'placeholder' => 'c43' ], ':c44' => [ 'value' => (int) 70, 'type' => 'integer', 'placeholder' => 'c44' ], ':c45' => [ 'value' => (int) 209, 'type' => 'integer', 'placeholder' => 'c45' ], ':c46' => [ 'value' => (int) 254, 'type' => 'integer', 'placeholder' => 'c46' ], ':c47' => [ 'value' => (int) 262, 'type' => 'integer', 'placeholder' => 'c47' ], ':c48' => [ 'value' => (int) 313, 'type' => 'integer', 'placeholder' => 'c48' ], ':c49' => [ 'value' => (int) 314, 'type' => 'integer', 'placeholder' => 'c49' ], ':c50' => [ 'value' => (int) 315, 'type' => 'integer', 'placeholder' => 'c50' ], ':c51' => [ 'value' => (int) 316, 'type' => 'integer', 'placeholder' => 'c51' ], ':c52' => [ 'value' => (int) 317, 'type' => 'integer', 'placeholder' => 'c52' ], ':c53' => [ 'value' => (int) 318, 'type' => 'integer', 'placeholder' => 'c53' ], ':c54' => [ 'value' => (int) 319, 'type' => 'integer', 'placeholder' => 'c54' ], ':c55' => [ 'value' => (int) 320, 'type' => 'integer', 'placeholder' => 'c55' ], ':c56' => [ 'value' => (int) 321, 'type' => 'integer', 'placeholder' => 'c56' ], ':c57' => [ 'value' => (int) 322, 'type' => 'integer', 'placeholder' => 'c57' ], ':c58' => [ 'value' => (int) 195, 'type' => 'integer', 'placeholder' => 'c58' ], ':c59' => [ 'value' => (int) 216, 'type' => 'integer', 'placeholder' => 'c59' ], ':c60' => [ 'value' => (int) 217, 'type' => 'integer', 'placeholder' => 'c60' ], ':c61' => [ 'value' => (int) 327, 'type' => 'integer', 'placeholder' => 'c61' ], ':c62' => [ 'value' => (int) 335, 'type' => 'integer', 'placeholder' => 'c62' ], ':c63' => [ 'value' => (int) 336, 'type' => 'integer', 'placeholder' => 'c63' ], ':c64' => [ 'value' => (int) 337, 'type' => 'integer', 'placeholder' => 'c64' ] ], 'defaultTypes' => [ 'Products__id' => 'integer', 'Products.id' => 'integer', 'id' => 'integer', 'Products__description' => 'text', 'Products.description' => 'text', 'description' => 'text', 'Products__status_id' => 'integer', 'Products.status_id' => 'integer', 'status_id' => 'integer', 'Products__category_id' => 'integer', 'Products.category_id' => 'integer', 'category_id' => 'integer', 'Products__color_id' => 'integer', 'Products.color_id' => 'integer', 'color_id' => 'integer', 'Products__price' => 'integer', 'Products.price' => 'integer', 'price' => 'integer', 'Products__sale' => 'integer', 'Products.sale' => 'integer', 'sale' => 'integer', 'Products__star' => 'float', 'Products.star' => 'float', 'star' => 'float', 'Products__created' => 'datetime', 'Products.created' => 'datetime', 'created' => 'datetime', 'Products__modified' => 'datetime', 'Products.modified' => 'datetime', 'modified' => 'datetime', 'Statuses__id' => 'integer', 'Statuses.id' => 'integer', 'Statuses__title' => 'string', 'Statuses.title' => 'string', 'title' => 'string', 'Photos__id' => 'integer', 'Photos.id' => 'integer', 'Photos__color_id' => 'integer', 'Photos.color_id' => 'integer', 'Photos__category_id' => 'integer', 'Photos.category_id' => 'integer', 'Photos__image' => 'string', 'Photos.image' => 'string', 'image' => 'string', 'Categories__id' => 'integer', 'Categories.id' => 'integer', 'Categories__title' => 'string', 'Categories.title' => 'string', 'Categories__parent_id' => 'integer', 'Categories.parent_id' => 'integer', 'parent_id' => 'integer', 'Categories__lft' => 'integer', 'Categories.lft' => 'integer', 'lft' => 'integer', 'Categories__rght' => 'integer', 'Categories.rght' => 'integer', 'rght' => 'integer', 'Categories__level' => 'integer', 'Categories.level' => 'integer', 'level' => 'integer', 'Categories__created' => 'datetime', 'Categories.created' => 'datetime', 'Categories__modified' => 'datetime', 'Categories.modified' => 'datetime', 'Categories__image' => 'string', 'Categories.image' => 'string', 'Specifications__id' => 'integer', 'Specifications.id' => 'integer', 'Specifications__title' => 'string', 'Specifications.title' => 'string', 'Specifications__category_id' => 'integer', 'Specifications.category_id' => 'integer', 'Specifications__cpu' => 'string', 'Specifications.cpu' => 'string', 'cpu' => 'string', 'Specifications__cpu_spec' => 'string', 'Specifications.cpu_spec' => 'string', 'cpu_spec' => 'string', 'Specifications__gpu' => 'string', 'Specifications.gpu' => 'string', 'gpu' => 'string', 'Specifications__storage' => 'string', 'Specifications.storage' => 'string', 'storage' => 'string', 'Specifications__removable' => 'string', 'Specifications.removable' => 'string', 'removable' => 'string', 'Specifications__ram' => 'string', 'Specifications.ram' => 'string', 'ram' => 'string', 'Specifications__os' => 'string', 'Specifications.os' => 'string', 'os' => 'string', 'Specifications__launcher' => 'string', 'Specifications.launcher' => 'string', 'launcher' => 'string', 'Specifications__dimensions' => 'string', 'Specifications.dimensions' => 'string', 'dimensions' => 'string', 'Specifications__weight' => 'string', 'Specifications.weight' => 'string', 'weight' => 'string', 'Specifications__battery' => 'string', 'Specifications.battery' => 'string', 'battery' => 'string', 'Specifications__recharge' => 'string', 'Specifications.recharge' => 'string', 'recharge' => 'string', 'Specifications__display' => 'string', 'Specifications.display' => 'string', 'display' => 'string', 'Specifications__camera' => 'string', 'Specifications.camera' => 'string', 'camera' => 'string', 'Specifications__finger' => 'string', 'Specifications.finger' => 'string', 'finger' => 'string', 'Specifications__facial' => 'string', 'Specifications.facial' => 'string', 'facial' => 'string', 'Specifications__keyboard' => 'string', 'Specifications.keyboard' => 'string', 'keyboard' => 'string', 'Specifications__other' => 'text', 'Specifications.other' => 'text', 'other' => 'text', 'Specifications__year' => 'char', 'Specifications.year' => 'char', 'year' => 'char', 'Specifications__count' => 'integer', 'Specifications.count' => 'integer', 'count' => 'integer', 'Specifications__visit' => 'integer', 'Specifications.visit' => 'integer', 'visit' => 'integer', 'ParentCategories__id' => 'integer', 'ParentCategories.id' => 'integer', 'ParentCategories__title' => 'string', 'ParentCategories.title' => 'string', 'ParentCategories__parent_id' => 'integer', 'ParentCategories.parent_id' => 'integer', 'ParentCategories__lft' => 'integer', 'ParentCategories.lft' => 'integer', 'ParentCategories__rght' => 'integer', 'ParentCategories.rght' => 'integer', 'ParentCategories__level' => 'integer', 'ParentCategories.level' => 'integer', 'ParentCategories__created' => 'datetime', 'ParentCategories.created' => 'datetime', 'ParentCategories__modified' => 'datetime', 'ParentCategories.modified' => 'datetime', 'ParentCategories__image' => 'string', 'ParentCategories.image' => 'string', 'Colors__id' => 'integer', 'Colors.id' => 'integer', 'Colors__title' => 'string', 'Colors.title' => 'string', 'Colors__code' => 'string', 'Colors.code' => 'string', 'code' => 'string' ], 'decorators' => (int) 0, 'executed' => true, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 0, 'mapReducers' => (int) 0, 'contain' => [ 'Statuses' => [], 'Photos' => [], 'Categories' => [ 'Specifications' => [[maximum depth reached]], 'ParentCategories' => [ [maximum depth reached] ], 'Photos' => [ [maximum depth reached] ] ] ], 'matching' => [], 'extraOptions' => [ 'scope' => null, 'sort' => null, 'whitelist' => [ (int) 0 => 'limit', (int) 1 => 'sort', (int) 2 => 'page', (int) 3 => 'direction' ] ], 'repository' => 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' } } [ 'limit' => (int) 10 ]
->find('all') |
|
->where(['Products.category_id IN' => $list]) |
|
->contain( |
|
[ |
|
'Statuses', 'Photos', 'Categories' => [ |
|
'Specifications', |
|
'ParentCategories' => [ |
|
'ParentCategories' |
|
], |
object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT Products.id AS Products__id, Products.description AS Products__description, Products.status_id AS Products__status_id, Products.category_id AS Products__category_id, Products.color_id AS Products__color_id, Products.price AS Products__price, Products.sale AS Products__sale, Products.star AS Products__star, Products.created AS Products__created, Products.modified AS Products__modified, Statuses.id AS Statuses__id, Statuses.title AS Statuses__title, Categories.id AS Categories__id, Categories.title AS Categories__title, Categories.parent_id AS Categories__parent_id, Categories.lft AS Categories__lft, Categories.rght AS Categories__rght, Categories.level AS Categories__level, Categories.created AS Categories__created, Categories.modified AS Categories__modified, Categories.image AS Categories__image, Specifications.id AS Specifications__id, Specifications.title AS Specifications__title, Specifications.category_id AS Specifications__category_id, Specifications.cpu AS Specifications__cpu, Specifications.cpu_spec AS Specifications__cpu_spec, Specifications.gpu AS Specifications__gpu, Specifications.storage AS Specifications__storage, Specifications.removable AS Specifications__removable, Specifications.ram AS Specifications__ram, Specifications.os AS Specifications__os, Specifications.launcher AS Specifications__launcher, Specifications.dimensions AS Specifications__dimensions, Specifications.weight AS Specifications__weight, Specifications.battery AS Specifications__battery, Specifications.recharge AS Specifications__recharge, Specifications.display AS Specifications__display, Specifications.camera AS Specifications__camera, Specifications.finger AS Specifications__finger, Specifications.facial AS Specifications__facial, Specifications.keyboard AS Specifications__keyboard, Specifications.other AS Specifications__other, Specifications.year AS Specifications__year, Specifications.count AS Specifications__count, Specifications.visit AS Specifications__visit FROM products Products LEFT JOIN statuses Statuses ON Statuses.id = (Products.status_id) LEFT JOIN categories Categories ON Categories.id = (Products.category_id) LEFT JOIN specifications Specifications ON Categories.id = (Specifications.category_id) WHERE Products.category_id in (:c0,:c1,:c2,:c3,:c4,:c5,:c6,:c7,:c8,:c9,:c10,:c11,:c12,:c13,:c14,:c15,:c16,:c17,:c18,:c19,:c20,:c21,:c22,:c23,:c24,:c25,:c26,:c27,:c28,:c29,:c30,:c31,:c32,:c33,:c34,:c35,:c36,:c37,:c38,:c39,:c40,:c41,:c42,:c43,:c44,:c45,:c46,:c47,:c48,:c49,:c50,:c51,:c52,:c53,:c54,:c55,:c56,:c57,:c58,:c59,:c60,:c61,:c62,:c63,:c64) LIMIT 10 OFFSET 50', 'params' => [ ':c0' => [ 'value' => (int) 25, 'type' => 'integer', 'placeholder' => 'c0' ], ':c1' => [ 'value' => (int) 26, 'type' => 'integer', 'placeholder' => 'c1' ], ':c2' => [ 'value' => (int) 165, 'type' => 'integer', 'placeholder' => 'c2' ], ':c3' => [ 'value' => (int) 166, 'type' => 'integer', 'placeholder' => 'c3' ], ':c4' => [ 'value' => (int) 167, 'type' => 'integer', 'placeholder' => 'c4' ], ':c5' => [ 'value' => (int) 291, 'type' => 'integer', 'placeholder' => 'c5' ], ':c6' => [ 'value' => (int) 329, 'type' => 'integer', 'placeholder' => 'c6' ], ':c7' => [ 'value' => (int) 330, 'type' => 'integer', 'placeholder' => 'c7' ], ':c8' => [ 'value' => (int) 331, 'type' => 'integer', 'placeholder' => 'c8' ], ':c9' => [ 'value' => (int) 27, 'type' => 'integer', 'placeholder' => 'c9' ], ':c10' => [ 'value' => (int) 168, 'type' => 'integer', 'placeholder' => 'c10' ], ':c11' => [ 'value' => (int) 169, 'type' => 'integer', 'placeholder' => 'c11' ], ':c12' => [ 'value' => (int) 170, 'type' => 'integer', 'placeholder' => 'c12' ], ':c13' => [ 'value' => (int) 171, 'type' => 'integer', 'placeholder' => 'c13' ], ':c14' => [ 'value' => (int) 176, 'type' => 'integer', 'placeholder' => 'c14' ], ':c15' => [ 'value' => (int) 276, 'type' => 'integer', 'placeholder' => 'c15' ], ':c16' => [ 'value' => (int) 257, 'type' => 'integer', 'placeholder' => 'c16' ], ':c17' => [ 'value' => (int) 323, 'type' => 'integer', 'placeholder' => 'c17' ], ':c18' => [ 'value' => (int) 324, 'type' => 'integer', 'placeholder' => 'c18' ], ':c19' => [ 'value' => (int) 332, 'type' => 'integer', 'placeholder' => 'c19' ], ':c20' => [ 'value' => (int) 333, 'type' => 'integer', 'placeholder' => 'c20' ], ':c21' => [ 'value' => (int) 334, 'type' => 'integer', 'placeholder' => 'c21' ], ':c22' => [ 'value' => (int) 31, 'type' => 'integer', 'placeholder' => 'c22' ], ':c23' => [ 'value' => (int) 183, 'type' => 'integer', 'placeholder' => 'c23' ], ':c24' => [ 'value' => (int) 68, 'type' => 'integer', 'placeholder' => 'c24' ], ':c25' => [ 'value' => (int) 185, 'type' => 'integer', 'placeholder' => 'c25' ], ':c26' => [ 'value' => (int) 186, 'type' => 'integer', 'placeholder' => 'c26' ], ':c27' => [ 'value' => (int) 274, 'type' => 'integer', 'placeholder' => 'c27' ], ':c28' => [ 'value' => (int) 286, 'type' => 'integer', 'placeholder' => 'c28' ], ':c29' => [ 'value' => (int) 192, 'type' => 'integer', 'placeholder' => 'c29' ], ':c30' => [ 'value' => (int) 198, 'type' => 'integer', 'placeholder' => 'c30' ], ':c31' => [ 'value' => (int) 249, 'type' => 'integer', 'placeholder' => 'c31' ], ':c32' => [ 'value' => (int) 250, 'type' => 'integer', 'placeholder' => 'c32' ], ':c33' => [ 'value' => (int) 304, 'type' => 'integer', 'placeholder' => 'c33' ], ':c34' => [ 'value' => (int) 305, 'type' => 'integer', 'placeholder' => 'c34' ], ':c35' => [ 'value' => (int) 306, 'type' => 'integer', 'placeholder' => 'c35' ], ':c36' => [ 'value' => (int) 307, 'type' => 'integer', 'placeholder' => 'c36' ], ':c37' => [ 'value' => (int) 308, 'type' => 'integer', 'placeholder' => 'c37' ], ':c38' => [ 'value' => (int) 309, 'type' => 'integer', 'placeholder' => 'c38' ], ':c39' => [ 'value' => (int) 310, 'type' => 'integer', 'placeholder' => 'c39' ], ':c40' => [ 'value' => (int) 311, 'type' => 'integer', 'placeholder' => 'c40' ], ':c41' => [ 'value' => (int) 312, 'type' => 'integer', 'placeholder' => 'c41' ], ':c42' => [ 'value' => (int) 193, 'type' => 'integer', 'placeholder' => 'c42' ], ':c43' => [ 'value' => (int) 71, 'type' => 'integer', 'placeholder' => 'c43' ], ':c44' => [ 'value' => (int) 70, 'type' => 'integer', 'placeholder' => 'c44' ], ':c45' => [ 'value' => (int) 209, 'type' => 'integer', 'placeholder' => 'c45' ], ':c46' => [ 'value' => (int) 254, 'type' => 'integer', 'placeholder' => 'c46' ], ':c47' => [ 'value' => (int) 262, 'type' => 'integer', 'placeholder' => 'c47' ], ':c48' => [ 'value' => (int) 313, 'type' => 'integer', 'placeholder' => 'c48' ], ':c49' => [ 'value' => (int) 314, 'type' => 'integer', 'placeholder' => 'c49' ], ':c50' => [ 'value' => (int) 315, 'type' => 'integer', 'placeholder' => 'c50' ], ':c51' => [ 'value' => (int) 316, 'type' => 'integer', 'placeholder' => 'c51' ], ':c52' => [ 'value' => (int) 317, 'type' => 'integer', 'placeholder' => 'c52' ], ':c53' => [ 'value' => (int) 318, 'type' => 'integer', 'placeholder' => 'c53' ], ':c54' => [ 'value' => (int) 319, 'type' => 'integer', 'placeholder' => 'c54' ], ':c55' => [ 'value' => (int) 320, 'type' => 'integer', 'placeholder' => 'c55' ], ':c56' => [ 'value' => (int) 321, 'type' => 'integer', 'placeholder' => 'c56' ], ':c57' => [ 'value' => (int) 322, 'type' => 'integer', 'placeholder' => 'c57' ], ':c58' => [ 'value' => (int) 195, 'type' => 'integer', 'placeholder' => 'c58' ], ':c59' => [ 'value' => (int) 216, 'type' => 'integer', 'placeholder' => 'c59' ], ':c60' => [ 'value' => (int) 217, 'type' => 'integer', 'placeholder' => 'c60' ], ':c61' => [ 'value' => (int) 327, 'type' => 'integer', 'placeholder' => 'c61' ], ':c62' => [ 'value' => (int) 335, 'type' => 'integer', 'placeholder' => 'c62' ], ':c63' => [ 'value' => (int) 336, 'type' => 'integer', 'placeholder' => 'c63' ], ':c64' => [ 'value' => (int) 337, 'type' => 'integer', 'placeholder' => 'c64' ] ], 'defaultTypes' => [ 'Products__id' => 'integer', 'Products.id' => 'integer', 'id' => 'integer', 'Products__description' => 'text', 'Products.description' => 'text', 'description' => 'text', 'Products__status_id' => 'integer', 'Products.status_id' => 'integer', 'status_id' => 'integer', 'Products__category_id' => 'integer', 'Products.category_id' => 'integer', 'category_id' => 'integer', 'Products__color_id' => 'integer', 'Products.color_id' => 'integer', 'color_id' => 'integer', 'Products__price' => 'integer', 'Products.price' => 'integer', 'price' => 'integer', 'Products__sale' => 'integer', 'Products.sale' => 'integer', 'sale' => 'integer', 'Products__star' => 'float', 'Products.star' => 'float', 'star' => 'float', 'Products__created' => 'datetime', 'Products.created' => 'datetime', 'created' => 'datetime', 'Products__modified' => 'datetime', 'Products.modified' => 'datetime', 'modified' => 'datetime', 'Statuses__id' => 'integer', 'Statuses.id' => 'integer', 'Statuses__title' => 'string', 'Statuses.title' => 'string', 'title' => 'string', 'Photos__id' => 'integer', 'Photos.id' => 'integer', 'Photos__color_id' => 'integer', 'Photos.color_id' => 'integer', 'Photos__category_id' => 'integer', 'Photos.category_id' => 'integer', 'Photos__image' => 'string', 'Photos.image' => 'string', 'image' => 'string', 'Categories__id' => 'integer', 'Categories.id' => 'integer', 'Categories__title' => 'string', 'Categories.title' => 'string', 'Categories__parent_id' => 'integer', 'Categories.parent_id' => 'integer', 'parent_id' => 'integer', 'Categories__lft' => 'integer', 'Categories.lft' => 'integer', 'lft' => 'integer', 'Categories__rght' => 'integer', 'Categories.rght' => 'integer', 'rght' => 'integer', 'Categories__level' => 'integer', 'Categories.level' => 'integer', 'level' => 'integer', 'Categories__created' => 'datetime', 'Categories.created' => 'datetime', 'Categories__modified' => 'datetime', 'Categories.modified' => 'datetime', 'Categories__image' => 'string', 'Categories.image' => 'string', 'Specifications__id' => 'integer', 'Specifications.id' => 'integer', 'Specifications__title' => 'string', 'Specifications.title' => 'string', 'Specifications__category_id' => 'integer', 'Specifications.category_id' => 'integer', 'Specifications__cpu' => 'string', 'Specifications.cpu' => 'string', 'cpu' => 'string', 'Specifications__cpu_spec' => 'string', 'Specifications.cpu_spec' => 'string', 'cpu_spec' => 'string', 'Specifications__gpu' => 'string', 'Specifications.gpu' => 'string', 'gpu' => 'string', 'Specifications__storage' => 'string', 'Specifications.storage' => 'string', 'storage' => 'string', 'Specifications__removable' => 'string', 'Specifications.removable' => 'string', 'removable' => 'string', 'Specifications__ram' => 'string', 'Specifications.ram' => 'string', 'ram' => 'string', 'Specifications__os' => 'string', 'Specifications.os' => 'string', 'os' => 'string', 'Specifications__launcher' => 'string', 'Specifications.launcher' => 'string', 'launcher' => 'string', 'Specifications__dimensions' => 'string', 'Specifications.dimensions' => 'string', 'dimensions' => 'string', 'Specifications__weight' => 'string', 'Specifications.weight' => 'string', 'weight' => 'string', 'Specifications__battery' => 'string', 'Specifications.battery' => 'string', 'battery' => 'string', 'Specifications__recharge' => 'string', 'Specifications.recharge' => 'string', 'recharge' => 'string', 'Specifications__display' => 'string', 'Specifications.display' => 'string', 'display' => 'string', 'Specifications__camera' => 'string', 'Specifications.camera' => 'string', 'camera' => 'string', 'Specifications__finger' => 'string', 'Specifications.finger' => 'string', 'finger' => 'string', 'Specifications__facial' => 'string', 'Specifications.facial' => 'string', 'facial' => 'string', 'Specifications__keyboard' => 'string', 'Specifications.keyboard' => 'string', 'keyboard' => 'string', 'Specifications__other' => 'text', 'Specifications.other' => 'text', 'other' => 'text', 'Specifications__year' => 'char', 'Specifications.year' => 'char', 'year' => 'char', 'Specifications__count' => 'integer', 'Specifications.count' => 'integer', 'count' => 'integer', 'Specifications__visit' => 'integer', 'Specifications.visit' => 'integer', 'visit' => 'integer', 'ParentCategories__id' => 'integer', 'ParentCategories.id' => 'integer', 'ParentCategories__title' => 'string', 'ParentCategories.title' => 'string', 'ParentCategories__parent_id' => 'integer', 'ParentCategories.parent_id' => 'integer', 'ParentCategories__lft' => 'integer', 'ParentCategories.lft' => 'integer', 'ParentCategories__rght' => 'integer', 'ParentCategories.rght' => 'integer', 'ParentCategories__level' => 'integer', 'ParentCategories.level' => 'integer', 'ParentCategories__created' => 'datetime', 'ParentCategories.created' => 'datetime', 'ParentCategories__modified' => 'datetime', 'ParentCategories.modified' => 'datetime', 'ParentCategories__image' => 'string', 'ParentCategories.image' => 'string', 'Colors__id' => 'integer', 'Colors.id' => 'integer', 'Colors__title' => 'string', 'Colors.title' => 'string', 'Colors__code' => 'string', 'Colors.code' => 'string', 'code' => 'string' ], 'decorators' => (int) 0, 'executed' => true, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 0, 'mapReducers' => (int) 0, 'contain' => [ 'Statuses' => [], 'Photos' => [], 'Categories' => [ 'Specifications' => [[maximum depth reached]], 'ParentCategories' => [ [maximum depth reached] ], 'Photos' => [ [maximum depth reached] ] ] ], 'matching' => [], 'extraOptions' => [ 'scope' => null, 'sort' => null, 'whitelist' => [ (int) 0 => 'limit', (int) 1 => 'sort', (int) 2 => 'page', (int) 3 => 'direction' ] ], 'repository' => 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' } }
* @throws \UnexpectedValueException If return value of action is not `null` or `ResponseInterface` instance. |
|
*/ |
|
public function invokeAction(Closure $action, array $args): void |
|
{ |
|
$result = $action(...$args); |
|
if ($result !== null && !$result instanceof ResponseInterface) { |
|
throw new UnexpectedValueException(sprintf( |
|
'Controller actions can only return ResponseInterface instance or null. ' |
|
. 'Got %s instead.', |
No arguments
} |
|
|
|
$action = $controller->getAction(); |
|
$args = array_values($controller->getRequest()->getParam('pass')); |
|
$controller->invokeAction($action, $args); |
|
|
|
$result = $controller->shutdownProcess(); |
|
if ($result instanceof ResponseInterface) { |
|
return $result; |
object(Closure) { } []
} |
|
|
|
$controller = $this->controllerFactory->create($request); |
|
|
|
return $this->controllerFactory->invoke($controller); |
|
} |
|
} |
|
|
object(App\Controller\CategoriesController) { paginate => [ 'limit' => (int) 10 ] RequestHandler => object(Cake\Controller\Component\RequestHandlerComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Flash => object(Cake\Controller\Component\FlashComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } Authentication => object(Authentication\Controller\Component\AuthenticationComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Authorization => object(Authorization\Controller\Component\AuthorizationComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Categories => object(App\Model\Table\CategoriesTable) { 'registryAlias' => 'Categories', 'table' => 'categories', 'alias' => 'Categories', 'entityClass' => 'App\Model\Entity\Category', 'associations' => [ [maximum depth reached] ], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } Paginator => object(Cake\Controller\Component\PaginatorComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } [protected] name => 'Categories' [protected] request => object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ [maximum depth reached] ] [protected] data => [[maximum depth reached]] [protected] query => [ [maximum depth reached] ] [protected] cookies => [[maximum depth reached]] [protected] _environment => [ [maximum depth reached] ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [[maximum depth reached]] [protected] _detectors => [ [maximum depth reached] ] [protected] _detectorCache => [ [maximum depth reached] ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) {} [protected] uri => object(Laminas\Diactoros\Uri) {} [protected] session => object(Cake\Http\Session) {} [protected] attributes => [ [maximum depth reached] ] [protected] emulatedAttributes => [ [maximum depth reached] ] [protected] uploadedFiles => [[maximum depth reached]] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true } [protected] response => object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ [maximum depth reached] ], 'file' => null, 'fileRange' => [[maximum depth reached]], 'cookies' => object(Cake\Http\Cookie\CookieCollection) {}, 'cacheDirectives' => [[maximum depth reached]], 'body' => '' } [protected] _responseClass => 'Cake\Http\Response' [protected] autoRender => true [protected] _components => object(Cake\Controller\ComponentRegistry) { '_Controller' => object(App\Controller\CategoriesController) {}, '_loaded' => [ [maximum depth reached] ], '_eventManager' => object(Cake\Event\EventManager) {}, '_eventClass' => 'Cake\Event\Event' } [protected] plugin => null [protected] _eventManager => object(Cake\Event\EventManager) { '_listeners' => [ [maximum depth reached] ], '_isGlobal' => false, '_trackEvents' => false, '_generalManager' => '(object) EventManager', '_dispatchedEvents' => null } [protected] _eventClass => 'Cake\Event\Event' [protected] _tableLocator => object(Cake\ORM\Locator\TableLocator) { [protected] locations => [ [maximum depth reached] ] [protected] _config => [[maximum depth reached]] [protected] _instances => [ [maximum depth reached] ] [protected] _fallbacked => [ [maximum depth reached] ] [protected] _options => [ [maximum depth reached] ] } [protected] modelClass => 'Categories' [protected] _modelFactories => [ 'Table' => [ (int) 0 => object(Cake\ORM\Locator\TableLocator) {}, (int) 1 => 'get' ] ] [protected] _modelType => 'Table' [protected] _viewBuilder => null }
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
|
} |
|
|
|
$response = new Response([ |
|
'body' => 'Middleware queue was exhausted without returning a response ' |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', 'page' => '6' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', 'page' => '6' ] [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' => 'ZgbXKfdTu5TwtZmk5esCEgAAAA4', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '3.88.114.76', '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' => '3.88.114.76', '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' => '3.88.114.76', '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' => '37128', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&page=6', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&page=6', 'REQUEST_URI' => '/categories?0=23&page=6', '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) 1711724329.6937, 'REQUEST_TIME' => (int) 1711724329, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&page=6' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&page=6' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => '20c286641d8af7a5b71cb9b0b55cd6233d70899cbaaccccc10beb6bfda2dee1fd2c538f757bb37e2c14c8220c358c279693d31e1e7a944f41b4d471fefee7a7d', 'identity' => null, 'authentication' => object(Authentication\AuthenticationService) {}, 'authenticationResult' => object(Authentication\Authenticator\Result) {}, 'authorization' => object(Authorization\AuthorizationService) {} ] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true }
return ($this->callable)( |
|
$request, |
|
new Response(), |
|
function ($request, $res) use ($handler) { |
|
return $handler->handle($request); |
|
} |
|
); |
|
} |
|
|
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', 'page' => '6' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', 'page' => '6' ] [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' => 'ZgbXKfdTu5TwtZmk5esCEgAAAA4', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '3.88.114.76', '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' => '3.88.114.76', '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' => '3.88.114.76', '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' => '37128', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&page=6', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&page=6', 'REQUEST_URI' => '/categories?0=23&page=6', '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) 1711724329.6937, 'REQUEST_TIME' => (int) 1711724329, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&page=6' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&page=6' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => '20c286641d8af7a5b71cb9b0b55cd6233d70899cbaaccccc10beb6bfda2dee1fd2c538f757bb37e2c14c8220c358c279693d31e1e7a944f41b4d471fefee7a7d', 'identity' => null, 'authentication' => object(Authentication\AuthenticationService) {}, 'authenticationResult' => object(Authentication\Authenticator\Result) {}, 'authorization' => object(Authorization\AuthorizationService) {} ] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true }
$middlewareQueue->add(function ($req, $res, $next) { |
|
if ($req->getParam('plugin') === 'DebugKit') { |
|
$req->getAttribute('authorization')->skipAuthorization(); |
|
} |
|
return $next($req, $res); |
|
}); |
|
} |
|
|
|
|
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', 'page' => '6' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', 'page' => '6' ] [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' => 'ZgbXKfdTu5TwtZmk5esCEgAAAA4', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '3.88.114.76', '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' => '3.88.114.76', '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' => '3.88.114.76', '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' => '37128', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&page=6', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&page=6', 'REQUEST_URI' => '/categories?0=23&page=6', '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) 1711724329.6937, 'REQUEST_TIME' => (int) 1711724329, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&page=6' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&page=6' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => '20c286641d8af7a5b71cb9b0b55cd6233d70899cbaaccccc10beb6bfda2dee1fd2c538f757bb37e2c14c8220c358c279693d31e1e7a944f41b4d471fefee7a7d', 'identity' => null, 'authentication' => object(Authentication\AuthenticationService) {}, 'authenticationResult' => object(Authentication\Authenticator\Result) {}, 'authorization' => object(Authorization\AuthorizationService) {} ] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$request, |
|
new Response(), |
|
function ($request, $res) use ($handler) { |
|
return $handler->handle($request); |
|
} |
|
); |
|
} |
|
|
|
/** |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', 'page' => '6' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', 'page' => '6' ] [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' => 'ZgbXKfdTu5TwtZmk5esCEgAAAA4', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '3.88.114.76', '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' => '3.88.114.76', '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' => '3.88.114.76', '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' => '37128', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&page=6', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&page=6', 'REQUEST_URI' => '/categories?0=23&page=6', '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) 1711724329.6937, 'REQUEST_TIME' => (int) 1711724329, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&page=6' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&page=6' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => '20c286641d8af7a5b71cb9b0b55cd6233d70899cbaaccccc10beb6bfda2dee1fd2c538f757bb37e2c14c8220c358c279693d31e1e7a944f41b4d471fefee7a7d', 'identity' => null, 'authentication' => object(Authentication\AuthenticationService) {}, 'authenticationResult' => object(Authentication\Authenticator\Result) {}, 'authorization' => object(Authorization\AuthorizationService) {} ] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Closure) { }
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', 'page' => '6' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', 'page' => '6' ] [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' => 'ZgbXKfdTu5TwtZmk5esCEgAAAA4', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '3.88.114.76', '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' => '3.88.114.76', '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' => '3.88.114.76', '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' => '37128', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&page=6', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&page=6', 'REQUEST_URI' => '/categories?0=23&page=6', '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) 1711724329.6937, 'REQUEST_TIME' => (int) 1711724329, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&page=6' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&page=6' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => '20c286641d8af7a5b71cb9b0b55cd6233d70899cbaaccccc10beb6bfda2dee1fd2c538f757bb37e2c14c8220c358c279693d31e1e7a944f41b4d471fefee7a7d', 'identity' => null, 'authentication' => object(Authentication\AuthenticationService) {}, 'authenticationResult' => object(Authentication\Authenticator\Result) {}, 'authorization' => object(Authorization\AuthorizationService) {} ] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true } object(Cake\Http\Runner) { [protected] queue => object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 6 [protected] queue => [ [maximum depth reached] ] } [protected] fallbackHandler => object(App\Application) { [protected] configDir => '/home/upzonemn/public_html/config/' [protected] plugins => object(Cake\Core\PluginCollection) {} [protected] controllerFactory => object(Cake\Controller\ControllerFactory) {} [protected] _eventManager => object(Cake\Event\EventManager) {} [protected] _eventClass => 'Cake\Event\Event' } }
$request = $request->withAttribute($attribute, $identity); |
|
} |
|
|
|
try { |
|
$response = $handler->handle($request); |
|
|
|
if ($this->getConfig('requireAuthorizationCheck') && !$service->authorizationChecked()) { |
|
throw new AuthorizationRequiredException(['url' => $request->getRequestTarget()]); |
|
} |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', 'page' => '6' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', 'page' => '6' ] [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' => 'ZgbXKfdTu5TwtZmk5esCEgAAAA4', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '3.88.114.76', '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' => '3.88.114.76', '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' => '3.88.114.76', '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' => '37128', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&page=6', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&page=6', 'REQUEST_URI' => '/categories?0=23&page=6', '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) 1711724329.6937, 'REQUEST_TIME' => (int) 1711724329, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&page=6' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&page=6' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => '20c286641d8af7a5b71cb9b0b55cd6233d70899cbaaccccc10beb6bfda2dee1fd2c538f757bb37e2c14c8220c358c279693d31e1e7a944f41b4d471fefee7a7d', 'identity' => null, 'authentication' => object(Authentication\AuthenticationService) {}, 'authenticationResult' => object(Authentication\Authenticator\Result) {}, 'authorization' => object(Authorization\AuthorizationService) {} ] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true }
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', 'page' => '6' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', 'page' => '6' ] [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' => 'ZgbXKfdTu5TwtZmk5esCEgAAAA4', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '3.88.114.76', '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' => '3.88.114.76', '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' => '3.88.114.76', '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' => '37128', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&page=6', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&page=6', 'REQUEST_URI' => '/categories?0=23&page=6', '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) 1711724329.6937, 'REQUEST_TIME' => (int) 1711724329, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&page=6' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&page=6' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => '20c286641d8af7a5b71cb9b0b55cd6233d70899cbaaccccc10beb6bfda2dee1fd2c538f757bb37e2c14c8220c358c279693d31e1e7a944f41b4d471fefee7a7d', 'identity' => null, 'authentication' => object(Authentication\AuthenticationService) {}, 'authenticationResult' => object(Authentication\Authenticator\Result) {}, 'authorization' => object(Authorization\AuthorizationService) {} ] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true } object(Cake\Http\Runner) { [protected] queue => object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 6 [protected] queue => [ [maximum depth reached] ] } [protected] fallbackHandler => object(App\Application) { [protected] configDir => '/home/upzonemn/public_html/config/' [protected] plugins => object(Cake\Core\PluginCollection) {} [protected] controllerFactory => object(Cake\Controller\ControllerFactory) {} [protected] _eventManager => object(Cake\Event\EventManager) {} [protected] _eventClass => 'Cake\Event\Event' } }
$request = $request->withAttribute('authentication', $service); |
|
$request = $request->withAttribute('authenticationResult', $result); |
|
|
|
try { |
|
$response = $handler->handle($request); |
|
$authenticator = $service->getAuthenticationProvider(); |
|
|
|
if ($authenticator !== null && !$authenticator instanceof StatelessInterface) { |
|
$return = $service->persistIdentity($request, $response, $result->getData()); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', 'page' => '6' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', 'page' => '6' ] [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' => 'ZgbXKfdTu5TwtZmk5esCEgAAAA4', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '3.88.114.76', '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' => '3.88.114.76', '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' => '3.88.114.76', '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' => '37128', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&page=6', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&page=6', 'REQUEST_URI' => '/categories?0=23&page=6', '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) 1711724329.6937, 'REQUEST_TIME' => (int) 1711724329, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&page=6' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&page=6' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => '20c286641d8af7a5b71cb9b0b55cd6233d70899cbaaccccc10beb6bfda2dee1fd2c538f757bb37e2c14c8220c358c279693d31e1e7a944f41b4d471fefee7a7d', 'identity' => null, 'authentication' => object(Authentication\AuthenticationService) {}, 'authenticationResult' => object(Authentication\Authenticator\Result) {} ] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true }
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', 'page' => '6' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', 'page' => '6' ] [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' => 'ZgbXKfdTu5TwtZmk5esCEgAAAA4', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '3.88.114.76', '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' => '3.88.114.76', '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' => '3.88.114.76', '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' => '37128', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&page=6', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&page=6', 'REQUEST_URI' => '/categories?0=23&page=6', '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) 1711724329.6937, 'REQUEST_TIME' => (int) 1711724329, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&page=6' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&page=6' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => '20c286641d8af7a5b71cb9b0b55cd6233d70899cbaaccccc10beb6bfda2dee1fd2c538f757bb37e2c14c8220c358c279693d31e1e7a944f41b4d471fefee7a7d', 'identity' => null, 'authentication' => object(Authentication\AuthenticationService) {}, 'authenticationResult' => object(Authentication\Authenticator\Result) {} ] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true } object(Cake\Http\Runner) { [protected] queue => object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 6 [protected] queue => [ [maximum depth reached] ] } [protected] fallbackHandler => object(App\Application) { [protected] configDir => '/home/upzonemn/public_html/config/' [protected] plugins => object(Cake\Core\PluginCollection) {} [protected] controllerFactory => object(Cake\Controller\ControllerFactory) {} [protected] _eventManager => object(Cake\Event\EventManager) {} [protected] _eventClass => 'Cake\Event\Event' } }
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
|
} |
|
|
|
$response = new Response([ |
|
'body' => 'Middleware queue was exhausted without returning a response ' |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', 'page' => '6' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', 'page' => '6' ] [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' => 'ZgbXKfdTu5TwtZmk5esCEgAAAA4', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '3.88.114.76', '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' => '3.88.114.76', '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' => '3.88.114.76', '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' => '37128', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&page=6', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&page=6', 'REQUEST_URI' => '/categories?0=23&page=6', '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) 1711724329.6937, 'REQUEST_TIME' => (int) 1711724329, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&page=6' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&page=6' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => '20c286641d8af7a5b71cb9b0b55cd6233d70899cbaaccccc10beb6bfda2dee1fd2c538f757bb37e2c14c8220c358c279693d31e1e7a944f41b4d471fefee7a7d' ] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true }
if ($method === 'GET' && $cookieData === null) { |
|
$token = $this->_createToken(); |
|
$request = $request->withAttribute('csrfToken', $token); |
|
/** @var mixed $response */ |
|
$response = $handler->handle($request); |
|
|
|
return $this->_addTokenCookie($token, $request, $response); |
|
} |
|
|
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', 'page' => '6' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', 'page' => '6' ] [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' => 'ZgbXKfdTu5TwtZmk5esCEgAAAA4', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '3.88.114.76', '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' => '3.88.114.76', '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' => '3.88.114.76', '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' => '37128', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&page=6', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&page=6', 'REQUEST_URI' => '/categories?0=23&page=6', '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) 1711724329.6937, 'REQUEST_TIME' => (int) 1711724329, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&page=6' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&page=6' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => '20c286641d8af7a5b71cb9b0b55cd6233d70899cbaaccccc10beb6bfda2dee1fd2c538f757bb37e2c14c8220c358c279693d31e1e7a944f41b4d471fefee7a7d' ] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true }
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', 'page' => '6' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', 'page' => '6' ] [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' => 'ZgbXKfdTu5TwtZmk5esCEgAAAA4', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '3.88.114.76', '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' => '3.88.114.76', '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' => '3.88.114.76', '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' => '37128', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&page=6', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&page=6', 'REQUEST_URI' => '/categories?0=23&page=6', '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) 1711724329.6937, 'REQUEST_TIME' => (int) 1711724329, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&page=6' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&page=6' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [ 'csrfToken' => '20c286641d8af7a5b71cb9b0b55cd6233d70899cbaaccccc10beb6bfda2dee1fd2c538f757bb37e2c14c8220c358c279693d31e1e7a944f41b4d471fefee7a7d' ] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true } object(Cake\Http\Runner) { [protected] queue => object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 1 [protected] queue => [ [maximum depth reached] ] } [protected] fallbackHandler => object(Cake\Http\Runner) { [protected] queue => object(Cake\Http\MiddlewareQueue) {} [protected] fallbackHandler => object(App\Application) {} } }
$this->queue = $queue; |
|
$this->queue->rewind(); |
|
$this->fallbackHandler = $fallbackHandler; |
|
|
|
return $this->handle($request); |
|
} |
|
|
|
/** |
|
* Handle incoming server request and return a response. |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', 'page' => '6' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', 'page' => '6' ] [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' => 'ZgbXKfdTu5TwtZmk5esCEgAAAA4', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '3.88.114.76', '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' => '3.88.114.76', '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' => '3.88.114.76', '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' => '37128', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&page=6', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&page=6', 'REQUEST_URI' => '/categories?0=23&page=6', '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) 1711724329.6937, 'REQUEST_TIME' => (int) 1711724329, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&page=6' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&page=6' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true }
|
|
$middleware = new MiddlewareQueue($matching); |
|
$runner = new Runner(); |
|
|
|
return $runner->run($middleware, $request, $handler); |
|
} |
|
} |
|
|
object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 1 [protected] queue => [ (int) 0 => object(Cake\Http\Middleware\CsrfProtectionMiddleware) {} ] } object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', 'page' => '6' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', 'page' => '6' ] [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' => 'ZgbXKfdTu5TwtZmk5esCEgAAAA4', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '3.88.114.76', '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' => '3.88.114.76', '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' => '3.88.114.76', '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' => '37128', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&page=6', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&page=6', 'REQUEST_URI' => '/categories?0=23&page=6', '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) 1711724329.6937, 'REQUEST_TIME' => (int) 1711724329, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&page=6' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&page=6' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true } object(Cake\Http\Runner) { [protected] queue => object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 6 [protected] queue => [ [maximum depth reached] ] } [protected] fallbackHandler => object(App\Application) { [protected] configDir => '/home/upzonemn/public_html/config/' [protected] plugins => object(Cake\Core\PluginCollection) {} [protected] controllerFactory => object(Cake\Controller\ControllerFactory) {} [protected] _eventManager => object(Cake\Event\EventManager) {} [protected] _eventClass => 'Cake\Event\Event' } }
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'controller' => 'Categories', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/{controller}', '?' => [ (int) 0 => '23', 'page' => '6' ], '_ext' => null ] [protected] data => [] [protected] query => [ (int) 0 => '23', 'page' => '6' ] [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' => 'ZgbXKfdTu5TwtZmk5esCEgAAAA4', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '3.88.114.76', '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' => '3.88.114.76', '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' => '3.88.114.76', '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' => '37128', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&page=6', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&page=6', 'REQUEST_URI' => '/categories?0=23&page=6', '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) 1711724329.6937, 'REQUEST_TIME' => (int) 1711724329, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&page=6' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&page=6' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true } object(Cake\Http\Runner) { [protected] queue => object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 6 [protected] queue => [ [maximum depth reached] ] } [protected] fallbackHandler => object(App\Application) { [protected] configDir => '/home/upzonemn/public_html/config/' [protected] plugins => object(Cake\Core\PluginCollection) {} [protected] controllerFactory => object(Cake\Controller\ControllerFactory) {} [protected] _eventManager => object(Cake\Event\EventManager) {} [protected] _eventClass => 'Cake\Event\Event' } }
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
{ |
|
$url = $request->getUri()->getPath(); |
|
if (strpos($url, '..') !== false || strpos($url, '.') === false) { |
|
return $handler->handle($request); |
|
} |
|
|
|
if (strpos($url, '/.') !== false) { |
|
return $handler->handle($request); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [ (int) 0 => '23', 'page' => '6' ] [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' => 'ZgbXKfdTu5TwtZmk5esCEgAAAA4', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '3.88.114.76', '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' => '3.88.114.76', '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' => '3.88.114.76', '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' => '37128', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&page=6', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&page=6', 'REQUEST_URI' => '/categories?0=23&page=6', '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) 1711724329.6937, 'REQUEST_TIME' => (int) 1711724329, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&page=6' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&page=6' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true }
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [ (int) 0 => '23', 'page' => '6' ] [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' => 'ZgbXKfdTu5TwtZmk5esCEgAAAA4', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '3.88.114.76', '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' => '3.88.114.76', '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' => '3.88.114.76', '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' => '37128', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&page=6', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&page=6', 'REQUEST_URI' => '/categories?0=23&page=6', '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) 1711724329.6937, 'REQUEST_TIME' => (int) 1711724329, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&page=6' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&page=6' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true } object(Cake\Http\Runner) { [protected] queue => object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 6 [protected] queue => [ [maximum depth reached] ] } [protected] fallbackHandler => object(App\Application) { [protected] configDir => '/home/upzonemn/public_html/config/' [protected] plugins => object(Cake\Core\PluginCollection) {} [protected] controllerFactory => object(Cake\Controller\ControllerFactory) {} [protected] _eventManager => object(Cake\Event\EventManager) {} [protected] _eventClass => 'Cake\Event\Event' } }
*/ |
|
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
{ |
|
try { |
|
return $handler->handle($request); |
|
} catch (Throwable $exception) { |
|
return $this->handleException($exception, $request); |
|
} |
|
} |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [ (int) 0 => '23', 'page' => '6' ] [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' => 'ZgbXKfdTu5TwtZmk5esCEgAAAA4', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '3.88.114.76', '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' => '3.88.114.76', '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' => '3.88.114.76', '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' => '37128', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&page=6', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&page=6', 'REQUEST_URI' => '/categories?0=23&page=6', '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) 1711724329.6937, 'REQUEST_TIME' => (int) 1711724329, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&page=6' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&page=6' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true }
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [ (int) 0 => '23', 'page' => '6' ] [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' => 'ZgbXKfdTu5TwtZmk5esCEgAAAA4', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '3.88.114.76', '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' => '3.88.114.76', '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' => '3.88.114.76', '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' => '37128', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&page=6', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&page=6', 'REQUEST_URI' => '/categories?0=23&page=6', '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) 1711724329.6937, 'REQUEST_TIME' => (int) 1711724329, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&page=6' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&page=6' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true } object(Cake\Http\Runner) { [protected] queue => object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 6 [protected] queue => [ [maximum depth reached] ] } [protected] fallbackHandler => object(App\Application) { [protected] configDir => '/home/upzonemn/public_html/config/' [protected] plugins => object(Cake\Core\PluginCollection) {} [protected] controllerFactory => object(Cake\Controller\ControllerFactory) {} [protected] _eventManager => object(Cake\Event\EventManager) {} [protected] _eventClass => 'Cake\Event\Event' } }
$this->queue = $queue; |
|
$this->queue->rewind(); |
|
$this->fallbackHandler = $fallbackHandler; |
|
|
|
return $this->handle($request); |
|
} |
|
|
|
/** |
|
* Handle incoming server request and return a response. |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [ (int) 0 => '23', 'page' => '6' ] [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' => 'ZgbXKfdTu5TwtZmk5esCEgAAAA4', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '3.88.114.76', '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' => '3.88.114.76', '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' => '3.88.114.76', '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' => '37128', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&page=6', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&page=6', 'REQUEST_URI' => '/categories?0=23&page=6', '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) 1711724329.6937, 'REQUEST_TIME' => (int) 1711724329, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&page=6' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&page=6' } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [protected] mergeFilesAsObjects => true }
} |
|
|
|
$this->dispatchEvent('Server.buildMiddleware', ['middleware' => $middleware]); |
|
|
|
$response = $this->runner->run($middleware, $request, $this->app); |
|
|
|
if ($request instanceof ServerRequest) { |
|
$request->getSession()->close(); |
|
} |
object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 6 [protected] queue => [ (int) 0 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) {}, (int) 1 => object(Cake\Routing\Middleware\AssetMiddleware) {}, (int) 2 => object(Cake\Routing\Middleware\RoutingMiddleware) {}, (int) 3 => object(Authentication\Middleware\AuthenticationMiddleware) {}, (int) 4 => object(Authorization\Middleware\AuthorizationMiddleware) {}, (int) 5 => object(Cake\Http\Middleware\DoublePassDecoratorMiddleware) {} ] } object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [ (int) 0 => '23', 'page' => '6' ] [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' => 'ZgbXKfdTu5TwtZmk5esCEgAAAA4', 'SCRIPT_URL' => '/categories', 'SCRIPT_URI' => 'http://upzone.mn/categories', 'HTTP_HOST' => 'upzone.mn', 'HTTP_X_FORWARDED_FOR' => '3.88.114.76', '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' => '3.88.114.76', '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' => '3.88.114.76', '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' => '37128', 'REDIRECT_URL' => '/webroot/index.php', 'REDIRECT_QUERY_STRING' => '0=23&page=6', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '0=23&page=6', 'REQUEST_URI' => '/categories?0=23&page=6', '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) 1711724329.6937, 'REQUEST_TIME' => (int) 1711724329, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [protected] trustedProxies => [] [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'upzone.mn' [private] port => null [private] path => '/categories' [private] query => '0=23&page=6' [private] fragment => '' [private] uriString => 'http://upzone.mn/categories?0=23&page=6' } [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/error400.php