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.title AS `Products__title`, Products.slug AS `Products__slug`, Products.manufacturer AS `Products__manufacturer`, Products.price AS `Products__price`, Products.description AS `Products__description`, Products.has_discount AS `Products__has_discount`, Products.is_popular AS `Products__is_popular`, Products.is_new AS `Products__is_new`, Products.has_special_offer AS `Products__has_special_offer`, Products.free_delivery AS `Products__free_delivery`, Products.active AS `Products__active`, Products.in_stock AS `Products__in_stock`, Products.items_in_stock AS `Products__items_in_stock`, Products.purchase_price AS `Products__purchase_price`, Products.delivery_term AS `Products__delivery_term`, Products.delivery_time_from AS `Products__delivery_time_from`, Products.delivery_time_to AS `Products__delivery_time_to`, Products.discount_price AS `Products__discount_price`, Products.width AS `Products__width`, Products.height AS `Products__height`, Products.depth AS `Products__depth`, Products.sleeping_area AS `Products__sleeping_area`, Products.weight AS `Products__weight`, Products.country AS `Products__country`, Products.created AS `Products__created`, Products.modified AS `Products__modified`, Products.external_id AS `Products__external_id`, ProductsNodes.id AS `ProductsNodes__id`, ProductsNodes.product_id AS `ProductsNodes__product_id`, ProductsNodes.node_id AS `ProductsNodes__node_id`, Nodes.id AS `Nodes__id`, Nodes.parent_id AS `Nodes__parent_id`, Nodes.lft AS `Nodes__lft`, Nodes.rght AS `Nodes__rght`, Nodes.controller AS `Nodes__controller`, Nodes.title AS `Nodes__title`, Nodes.slug AS `Nodes__slug`, Nodes.active AS `Nodes__active`, Nodes.data AS `Nodes__data`, Nodes.created AS `Nodes__created`, Nodes.modified AS `Nodes__modified`, Nodes.taxonomy_id AS `Nodes__taxonomy_id` FROM products Products INNER JOIN products_nodes ProductsNodes ON Products.id = (ProductsNodes.product_id) INNER JOIN nodes Nodes ON (Nodes.id = :c0 AND Nodes.id = (ProductsNodes.node_id)) WHERE Products.active = :c1 ORDER BY CASE WHEN Products.has_discount = :c2 THEN Products.discount_price ELSE Products.price END ASC, Products.title asc LIMIT 40 OFFSET 360', 'params' => [ ':c0' => [ 'value' => (int) 53, 'type' => 'integer', 'placeholder' => 'c0' ], ':c1' => [ 'value' => (int) 1, 'type' => 'boolean', 'placeholder' => 'c1' ], ':c2' => [ 'value' => '1', 'type' => 'boolean', 'placeholder' => 'c2' ] ], 'defaultTypes' => [ 'Products__id' => 'integer', 'Products.id' => 'integer', 'id' => 'integer', 'Products__title' => 'string', 'Products.title' => 'string', 'title' => 'string', 'Products__slug' => 'string', 'Products.slug' => 'string', 'slug' => 'string', 'Products__manufacturer' => 'string', 'Products.manufacturer' => 'string', 'manufacturer' => 'string', 'Products__price' => 'decimal', 'Products.price' => 'decimal', 'price' => 'decimal', 'Products__description' => 'text', 'Products.description' => 'text', 'description' => 'text', 'Products__has_discount' => 'boolean', 'Products.has_discount' => 'boolean', 'has_discount' => 'boolean', 'Products__is_popular' => 'boolean', 'Products.is_popular' => 'boolean', 'is_popular' => 'boolean', 'Products__is_new' => 'boolean', 'Products.is_new' => 'boolean', 'is_new' => 'boolean', 'Products__has_special_offer' => 'boolean', 'Products.has_special_offer' => 'boolean', 'has_special_offer' => 'boolean', 'Products__free_delivery' => 'boolean', 'Products.free_delivery' => 'boolean', 'free_delivery' => 'boolean', 'Products__active' => 'boolean', 'Products.active' => 'boolean', 'active' => 'boolean', 'Products__in_stock' => 'boolean', 'Products.in_stock' => 'boolean', 'in_stock' => 'boolean', 'Products__items_in_stock' => 'integer', 'Products.items_in_stock' => 'integer', 'items_in_stock' => 'integer', 'Products__purchase_price' => 'decimal', 'Products.purchase_price' => 'decimal', 'purchase_price' => 'decimal', 'Products__delivery_term' => 'string', 'Products.delivery_term' => 'string', 'delivery_term' => 'string', 'Products__delivery_time_from' => 'integer', 'Products.delivery_time_from' => 'integer', 'delivery_time_from' => 'integer', 'Products__delivery_time_to' => 'integer', 'Products.delivery_time_to' => 'integer', 'delivery_time_to' => 'integer', 'Products__discount_price' => 'decimal', 'Products.discount_price' => 'decimal', 'discount_price' => 'decimal', 'Products__width' => 'string', 'Products.width' => 'string', 'width' => 'string', 'Products__height' => 'string', 'Products.height' => 'string', 'height' => 'string', 'Products__depth' => 'string', 'Products.depth' => 'string', 'depth' => 'string', 'Products__sleeping_area' => 'string', 'Products.sleeping_area' => 'string', 'sleeping_area' => 'string', 'Products__weight' => 'string', 'Products.weight' => 'string', 'weight' => 'string', 'Products__country' => 'string', 'Products.country' => 'string', 'country' => 'string', 'Products__created' => 'datetime', 'Products.created' => 'datetime', 'created' => 'datetime', 'Products__modified' => 'datetime', 'Products.modified' => 'datetime', 'modified' => 'datetime', 'Products__external_id' => 'string', 'Products.external_id' => 'string', 'external_id' => 'string', 'ProductsColors__id' => 'integer', 'ProductsColors.id' => 'integer', 'ProductsColors__product_id' => 'integer', 'ProductsColors.product_id' => 'integer', 'product_id' => 'integer', 'ProductsColors__color_group_id' => 'integer', 'ProductsColors.color_group_id' => 'integer', 'color_group_id' => 'integer', 'ProductsColors__color_id' => 'integer', 'ProductsColors.color_id' => 'integer', 'color_id' => 'integer', 'ProductsColors__price' => 'decimal', 'ProductsColors.price' => 'decimal', 'ProductsColors__images' => 'serialized', 'ProductsColors.images' => 'serialized', 'images' => 'serialized', 'Nodes__id' => 'integer', 'Nodes.id' => 'integer', 'Nodes__parent_id' => 'integer', 'Nodes.parent_id' => 'integer', 'parent_id' => 'integer', 'Nodes__lft' => 'integer', 'Nodes.lft' => 'integer', 'lft' => 'integer', 'Nodes__rght' => 'integer', 'Nodes.rght' => 'integer', 'rght' => 'integer', 'Nodes__controller' => 'string', 'Nodes.controller' => 'string', 'controller' => 'string', 'Nodes__title' => 'string', 'Nodes.title' => 'string', 'Nodes__slug' => 'string', 'Nodes.slug' => 'string', 'Nodes__active' => 'boolean', 'Nodes.active' => 'boolean', 'Nodes__data' => 'serialized', 'Nodes.data' => 'serialized', 'data' => 'serialized', 'Nodes__created' => 'datetime', 'Nodes.created' => 'datetime', 'Nodes__modified' => 'datetime', 'Nodes.modified' => 'datetime', 'Nodes__taxonomy_id' => 'integer', 'Nodes.taxonomy_id' => 'integer', 'taxonomy_id' => 'integer', 'images__id' => 'integer', 'images.id' => 'integer', 'images__field_index' => 'integer', 'images.field_index' => 'integer', 'field_index' => 'integer', 'images__model' => 'string', 'images.model' => 'string', 'model' => 'string', 'images__foreign_key' => 'integer', 'images.foreign_key' => 'integer', 'foreign_key' => 'integer', 'images__field' => 'string', 'images.field' => 'string', 'field' => 'string', 'images__filename' => 'string', 'images.filename' => 'string', 'filename' => 'string', 'images__size' => 'integer', 'images.size' => 'integer', 'size' => 'integer', 'images__mime' => 'string', 'images.mime' => 'string', 'mime' => 'string', 'ProductsNodes__id' => 'integer', 'ProductsNodes.id' => 'integer', 'ProductsNodes__product_id' => 'integer', 'ProductsNodes.product_id' => 'integer', 'ProductsNodes__node_id' => 'integer', 'ProductsNodes.node_id' => 'integer', 'node_id' => 'integer' ], 'decorators' => (int) 1, 'executed' => true, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 0, 'mapReducers' => (int) 0, 'contain' => [ 'ProductsColors' => [], 'images' => [] ], 'matching' => [ 'Nodes' => [ 'queryBuilder' => object(Closure) {}, 'matching' => true, 'joinType' => 'INNER' ] ], 'extraOptions' => [ 'scope' => null, 'sort' => 'title', '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) 40, 'maxLimit' => (int) 240, 'order' => [ 'title' => 'asc' ] ]
} |
|
|
|
$products = $searchForm->getSeachQuery( $productsQuery ); |
|
|
|
$this->set( 'products', $this->paginate( $products ) ); |
|
} |
|
|
|
$this->set( 'customTitle', $node->title ); |
|
$this->set( 'subCategories', $node->children ); |
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.title AS `Products__title`, Products.slug AS `Products__slug`, Products.manufacturer AS `Products__manufacturer`, Products.price AS `Products__price`, Products.description AS `Products__description`, Products.has_discount AS `Products__has_discount`, Products.is_popular AS `Products__is_popular`, Products.is_new AS `Products__is_new`, Products.has_special_offer AS `Products__has_special_offer`, Products.free_delivery AS `Products__free_delivery`, Products.active AS `Products__active`, Products.in_stock AS `Products__in_stock`, Products.items_in_stock AS `Products__items_in_stock`, Products.purchase_price AS `Products__purchase_price`, Products.delivery_term AS `Products__delivery_term`, Products.delivery_time_from AS `Products__delivery_time_from`, Products.delivery_time_to AS `Products__delivery_time_to`, Products.discount_price AS `Products__discount_price`, Products.width AS `Products__width`, Products.height AS `Products__height`, Products.depth AS `Products__depth`, Products.sleeping_area AS `Products__sleeping_area`, Products.weight AS `Products__weight`, Products.country AS `Products__country`, Products.created AS `Products__created`, Products.modified AS `Products__modified`, Products.external_id AS `Products__external_id`, ProductsNodes.id AS `ProductsNodes__id`, ProductsNodes.product_id AS `ProductsNodes__product_id`, ProductsNodes.node_id AS `ProductsNodes__node_id`, Nodes.id AS `Nodes__id`, Nodes.parent_id AS `Nodes__parent_id`, Nodes.lft AS `Nodes__lft`, Nodes.rght AS `Nodes__rght`, Nodes.controller AS `Nodes__controller`, Nodes.title AS `Nodes__title`, Nodes.slug AS `Nodes__slug`, Nodes.active AS `Nodes__active`, Nodes.data AS `Nodes__data`, Nodes.created AS `Nodes__created`, Nodes.modified AS `Nodes__modified`, Nodes.taxonomy_id AS `Nodes__taxonomy_id` FROM products Products INNER JOIN products_nodes ProductsNodes ON Products.id = (ProductsNodes.product_id) INNER JOIN nodes Nodes ON (Nodes.id = :c0 AND Nodes.id = (ProductsNodes.node_id)) WHERE Products.active = :c1 ORDER BY CASE WHEN Products.has_discount = :c2 THEN Products.discount_price ELSE Products.price END ASC, Products.title asc LIMIT 40 OFFSET 360', 'params' => [ ':c0' => [ 'value' => (int) 53, 'type' => 'integer', 'placeholder' => 'c0' ], ':c1' => [ 'value' => (int) 1, 'type' => 'boolean', 'placeholder' => 'c1' ], ':c2' => [ 'value' => '1', 'type' => 'boolean', 'placeholder' => 'c2' ] ], 'defaultTypes' => [ 'Products__id' => 'integer', 'Products.id' => 'integer', 'id' => 'integer', 'Products__title' => 'string', 'Products.title' => 'string', 'title' => 'string', 'Products__slug' => 'string', 'Products.slug' => 'string', 'slug' => 'string', 'Products__manufacturer' => 'string', 'Products.manufacturer' => 'string', 'manufacturer' => 'string', 'Products__price' => 'decimal', 'Products.price' => 'decimal', 'price' => 'decimal', 'Products__description' => 'text', 'Products.description' => 'text', 'description' => 'text', 'Products__has_discount' => 'boolean', 'Products.has_discount' => 'boolean', 'has_discount' => 'boolean', 'Products__is_popular' => 'boolean', 'Products.is_popular' => 'boolean', 'is_popular' => 'boolean', 'Products__is_new' => 'boolean', 'Products.is_new' => 'boolean', 'is_new' => 'boolean', 'Products__has_special_offer' => 'boolean', 'Products.has_special_offer' => 'boolean', 'has_special_offer' => 'boolean', 'Products__free_delivery' => 'boolean', 'Products.free_delivery' => 'boolean', 'free_delivery' => 'boolean', 'Products__active' => 'boolean', 'Products.active' => 'boolean', 'active' => 'boolean', 'Products__in_stock' => 'boolean', 'Products.in_stock' => 'boolean', 'in_stock' => 'boolean', 'Products__items_in_stock' => 'integer', 'Products.items_in_stock' => 'integer', 'items_in_stock' => 'integer', 'Products__purchase_price' => 'decimal', 'Products.purchase_price' => 'decimal', 'purchase_price' => 'decimal', 'Products__delivery_term' => 'string', 'Products.delivery_term' => 'string', 'delivery_term' => 'string', 'Products__delivery_time_from' => 'integer', 'Products.delivery_time_from' => 'integer', 'delivery_time_from' => 'integer', 'Products__delivery_time_to' => 'integer', 'Products.delivery_time_to' => 'integer', 'delivery_time_to' => 'integer', 'Products__discount_price' => 'decimal', 'Products.discount_price' => 'decimal', 'discount_price' => 'decimal', 'Products__width' => 'string', 'Products.width' => 'string', 'width' => 'string', 'Products__height' => 'string', 'Products.height' => 'string', 'height' => 'string', 'Products__depth' => 'string', 'Products.depth' => 'string', 'depth' => 'string', 'Products__sleeping_area' => 'string', 'Products.sleeping_area' => 'string', 'sleeping_area' => 'string', 'Products__weight' => 'string', 'Products.weight' => 'string', 'weight' => 'string', 'Products__country' => 'string', 'Products.country' => 'string', 'country' => 'string', 'Products__created' => 'datetime', 'Products.created' => 'datetime', 'created' => 'datetime', 'Products__modified' => 'datetime', 'Products.modified' => 'datetime', 'modified' => 'datetime', 'Products__external_id' => 'string', 'Products.external_id' => 'string', 'external_id' => 'string', 'ProductsColors__id' => 'integer', 'ProductsColors.id' => 'integer', 'ProductsColors__product_id' => 'integer', 'ProductsColors.product_id' => 'integer', 'product_id' => 'integer', 'ProductsColors__color_group_id' => 'integer', 'ProductsColors.color_group_id' => 'integer', 'color_group_id' => 'integer', 'ProductsColors__color_id' => 'integer', 'ProductsColors.color_id' => 'integer', 'color_id' => 'integer', 'ProductsColors__price' => 'decimal', 'ProductsColors.price' => 'decimal', 'ProductsColors__images' => 'serialized', 'ProductsColors.images' => 'serialized', 'images' => 'serialized', 'Nodes__id' => 'integer', 'Nodes.id' => 'integer', 'Nodes__parent_id' => 'integer', 'Nodes.parent_id' => 'integer', 'parent_id' => 'integer', 'Nodes__lft' => 'integer', 'Nodes.lft' => 'integer', 'lft' => 'integer', 'Nodes__rght' => 'integer', 'Nodes.rght' => 'integer', 'rght' => 'integer', 'Nodes__controller' => 'string', 'Nodes.controller' => 'string', 'controller' => 'string', 'Nodes__title' => 'string', 'Nodes.title' => 'string', 'Nodes__slug' => 'string', 'Nodes.slug' => 'string', 'Nodes__active' => 'boolean', 'Nodes.active' => 'boolean', 'Nodes__data' => 'serialized', 'Nodes.data' => 'serialized', 'data' => 'serialized', 'Nodes__created' => 'datetime', 'Nodes.created' => 'datetime', 'Nodes__modified' => 'datetime', 'Nodes.modified' => 'datetime', 'Nodes__taxonomy_id' => 'integer', 'Nodes.taxonomy_id' => 'integer', 'taxonomy_id' => 'integer', 'images__id' => 'integer', 'images.id' => 'integer', 'images__field_index' => 'integer', 'images.field_index' => 'integer', 'field_index' => 'integer', 'images__model' => 'string', 'images.model' => 'string', 'model' => 'string', 'images__foreign_key' => 'integer', 'images.foreign_key' => 'integer', 'foreign_key' => 'integer', 'images__field' => 'string', 'images.field' => 'string', 'field' => 'string', 'images__filename' => 'string', 'images.filename' => 'string', 'filename' => 'string', 'images__size' => 'integer', 'images.size' => 'integer', 'size' => 'integer', 'images__mime' => 'string', 'images.mime' => 'string', 'mime' => 'string', 'ProductsNodes__id' => 'integer', 'ProductsNodes.id' => 'integer', 'ProductsNodes__product_id' => 'integer', 'ProductsNodes.product_id' => 'integer', 'ProductsNodes__node_id' => 'integer', 'ProductsNodes.node_id' => 'integer', 'node_id' => 'integer' ], 'decorators' => (int) 1, 'executed' => true, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 0, 'mapReducers' => (int) 0, 'contain' => [ 'ProductsColors' => [], 'images' => [] ], 'matching' => [ 'Nodes' => [ 'queryBuilder' => object(Closure) {}, 'matching' => true, 'joinType' => 'INNER' ] ], 'extraOptions' => [ 'scope' => null, 'sort' => 'title', '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' } }
} |
|
/* @var callable $callable */ |
|
$callable = [$this, $request->getParam('action')]; |
|
|
|
return $callable(...array_values($request->getParam('pass'))); |
|
} |
|
|
|
/** |
|
* Merge components, helpers vars from |
No arguments
if ($result instanceof Response) { |
|
return $result; |
|
} |
|
|
|
$response = $controller->invokeAction(); |
|
if ($response !== null && !($response instanceof Response)) { |
|
throw new LogicException('Controller actions can only return Cake\Http\Response or null.'); |
|
} |
|
|
No arguments
} else { |
|
$controller = $this->factory->create($request, $response); |
|
} |
|
|
|
$response = $this->_invoke($controller); |
|
if (isset($request->params['return'])) { |
|
return $response; |
|
} |
|
|
object(App\Controller\CollectionsController) { helpers => [ 'Paginator' => [ 'className' => 'Paginator' ], 'Html' => [ 'className' => 'Bootstrap.Html' ], 'Form' => [ 'className' => 'Bootstrap.Form', 'useCustomFileInput' => true, 'columns' => [ [maximum depth reached] ] ], 'Modal' => [ 'className' => 'Bootstrap.Modal' ], 'Flash' => [ 'className' => 'Bootstrap.Flash' ] ] paginate => [ 'limit' => (int) 40, 'maxLimit' => (int) 240, 'order' => [ 'title' => 'asc' ] ] name => 'Collections' request => object(Cake\Http\ServerRequest) { params => [ [maximum depth reached] ] data => [[maximum depth reached]] query => [ [maximum depth reached] ] cookies => [[maximum depth reached]] url => 'lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' base => '' webroot => '/' here => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' trustProxy => false [protected] _environment => [ [maximum depth reached] ] [protected] _input => null [protected] _detectors => [ [maximum depth reached] ] [protected] _detectorCache => [ [maximum depth reached] ] [protected] stream => object(Zend\Diactoros\PhpInputStream) {} [protected] uri => object(Zend\Diactoros\Uri) {} [protected] session => object(Cake\Network\Session) {} [protected] attributes => [[maximum depth reached]] [protected] emulatedAttributes => [ [maximum depth reached] ] [protected] uploadedFiles => [[maximum depth reached]] [protected] protocol => null [protected] requestTarget => null } 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' => '' } autoRender => true components => [] View => null plugin => null passedArgs => [] modelClass => 'Collections' viewClass => null viewVars => [ 'projectName' => ' | 24a.lv', 'isLoggedIn' => false, 'isAdmin' => false, 'acceptedCookies' => false, 'languageLinks' => [ 'lv' => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/?page=10', 'ru' => '/ru/gostinaa-spal-na/mebel/zurnal-nye-stoliki/?page=10', 'en' => '/en/living-room-bedroom/furniture/coffee-tables/?page=10', 'ee' => '/ee/elutuba-magamistuba/moobel/diivanilauad-ja-serveerimislauad/?page=10', 'de' => '/de/living-room-bedroom/mobel/couchtische/?page=10' ], 'searchForm' => object(App\Form\SearchForm) {}, 'breadcrumbs' => [ 'Sākums' => '/lv/', 'Viesistaba/Guļamistaba' => 'lv/viesistaba-gulamistaba', 'Mēbeles' => 'lv/viesistaba-gulamistaba/mebeles', 'Žurnālu galdi' => 'lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi' ], 'profileNode' => object(App\Model\Entity\Node) {}, 'cartNode' => object(App\Model\Entity\Node) {}, 'authorizationNode' => object(App\Model\Entity\Node) {}, 'registrationNode' => object(App\Model\Entity\Node) {}, 'menuNodes' => [ (int) 0 => object(App\Model\Entity\Node) {}, (int) 1 => object(App\Model\Entity\Node) {}, (int) 2 => object(App\Model\Entity\Node) {}, (int) 3 => object(App\Model\Entity\Node) {}, (int) 4 => object(App\Model\Entity\Node) {}, (int) 5 => object(App\Model\Entity\Node) {}, (int) 6 => object(App\Model\Entity\Node) {}, (int) 7 => object(App\Model\Entity\Node) {}, (int) 8 => object(App\Model\Entity\Node) {} ], 'rootNode' => object(App\Model\Entity\Node) {}, 'node' => object(App\Model\Entity\Node) {} ] 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] ] } Cookie => object(Cake\Controller\Component\CookieComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } Auth => object(Cake\Controller\Component\AuthComponent) { 'components' => [ [maximum depth reached] ], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Users => object(App\Model\Table\UsersTable) { 'registryAlias' => 'Users', 'table' => 'users', 'alias' => 'Users', 'entityClass' => 'App\Model\Entity\User', '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] projectName => ' | 24a.lv' [protected] node => object(App\Model\Entity\Node) { 'id' => (int) 53, 'parent_id' => (int) 5, 'lft' => (int) 42, 'rght' => (int) 43, 'controller' => 'App\Controller\CollectionsController', 'title' => 'Žurnālu galdi', 'slug' => 'zurnalu-galdi', 'active' => true, 'data' => [ [maximum depth reached] ], 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'taxonomy_id' => null, '[new]' => false, '[accessible]' => [ [maximum depth reached] ], '[dirty]' => [[maximum depth reached]], '[original]' => [[maximum depth reached]], '[virtual]' => [[maximum depth reached]], '[errors]' => [[maximum depth reached]], '[invalid]' => [[maximum depth reached]], '[repository]' => 'Nodes' } [protected] _responseClass => 'Cake\Http\Response' [protected] _components => object(Cake\Controller\ComponentRegistry) { '_Controller' => object(App\Controller\CollectionsController) {}, '_loaded' => [ [maximum depth reached] ], '_eventManager' => object(Cake\Event\EventManager) {}, '_eventClass' => 'Cake\Event\Event' } [protected] _validViewOptions => [ (int) 0 => 'passedArgs' ] [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] _config => [[maximum depth reached]] [protected] _instances => [ [maximum depth reached] ] [protected] _fallbacked => [ [maximum depth reached] ] [protected] _options => [ [maximum depth reached] ] } [protected] _modelFactories => [ 'Table' => [ (int) 0 => object(Cake\ORM\Locator\TableLocator) {}, (int) 1 => 'get' ] ] [protected] _modelType => 'Table' [protected] _viewBuilder => null }
* @return \Psr\Http\Message\ResponseInterface |
|
*/ |
|
public function __invoke(ServerRequestInterface $request, ResponseInterface $response, $next) |
|
{ |
|
return $this->getDispatcher()->dispatch($request, $response); |
|
} |
|
|
|
/** |
|
* Get the ActionDispatcher. |
object(Cake\Http\ServerRequest) { params => [ 'language' => 'lv', 'pass' => [], 'controller' => 'Collections', 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:language/viesistaba-gulamistaba/mebeles/zurnalu-galdi', 'node' => object(App\Model\Entity\Node) {}, 'breadcrumbs' => [ 'Viesistaba/Guļamistaba' => 'lv/viesistaba-gulamistaba', 'Mēbeles' => 'lv/viesistaba-gulamistaba/mebeles', 'Žurnālu galdi' => 'lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi' ], 'rootNode' => object(App\Model\Entity\Node) {}, 'isAjax' => false, 'paging' => [ 'Products' => [ [maximum depth reached] ] ] ] data => [] query => [ 'page' => '10' ] cookies => [] url => 'lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' base => '' webroot => '/' here => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' trustProxy => false [protected] _environment => [ 'USER' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'www.24a.lv', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'SCRIPT_FILENAME' => '/home/24a/www/webroot/index.php', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'www.24a.lv', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.19.0.5', 'REMOTE_PORT' => '47616', 'REMOTE_ADDR' => '44.213.99.37', 'SERVER_SOFTWARE' => 'nginx/1.23.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/home/24a/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/?page=10', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'page=10', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710844995.145, 'REQUEST_TIME' => (int) 1710844995, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] _input => null [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' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], '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, 'get' => true, 'head' => false, 'options' => false, 'post' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.24a.lv' [private] port => null [private] path => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' [private] query => 'page=10' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => false [protected] _lifetime => '259200' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } 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' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { params => [ 'language' => 'lv', 'pass' => [], 'controller' => 'Collections', 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:language/viesistaba-gulamistaba/mebeles/zurnalu-galdi', 'node' => object(App\Model\Entity\Node) {}, 'breadcrumbs' => [ 'Viesistaba/Guļamistaba' => 'lv/viesistaba-gulamistaba', 'Mēbeles' => 'lv/viesistaba-gulamistaba/mebeles', 'Žurnālu galdi' => 'lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi' ], 'rootNode' => object(App\Model\Entity\Node) {}, 'isAjax' => false, 'paging' => [ 'Products' => [ [maximum depth reached] ] ] ] data => [] query => [ 'page' => '10' ] cookies => [] url => 'lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' base => '' webroot => '/' here => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' trustProxy => false [protected] _environment => [ 'USER' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'www.24a.lv', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'SCRIPT_FILENAME' => '/home/24a/www/webroot/index.php', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'www.24a.lv', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.19.0.5', 'REMOTE_PORT' => '47616', 'REMOTE_ADDR' => '44.213.99.37', 'SERVER_SOFTWARE' => 'nginx/1.23.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/home/24a/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/?page=10', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'page=10', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710844995.145, 'REQUEST_TIME' => (int) 1710844995, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] _input => null [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' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], '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, 'get' => true, 'head' => false, 'options' => false, 'post' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.24a.lv' [private] port => null [private] path => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' [private] query => 'page=10' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => false [protected] _lifetime => '259200' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } 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(Cake\Http\Runner) { [protected] index => (int) 6 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
); |
|
} |
|
$matching = Router::getRouteCollection()->getMiddleware($middleware); |
|
if (!$matching) { |
|
return $next($request, $response); |
|
} |
|
$matching[] = $next; |
|
$middleware = new MiddlewareQueue($matching); |
|
$runner = new Runner(); |
object(Cake\Http\ServerRequest) { params => [ 'language' => 'lv', 'pass' => [], 'controller' => 'Collections', 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:language/viesistaba-gulamistaba/mebeles/zurnalu-galdi', 'node' => object(App\Model\Entity\Node) {}, 'breadcrumbs' => [ 'Viesistaba/Guļamistaba' => 'lv/viesistaba-gulamistaba', 'Mēbeles' => 'lv/viesistaba-gulamistaba/mebeles', 'Žurnālu galdi' => 'lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi' ], 'rootNode' => object(App\Model\Entity\Node) {}, 'isAjax' => false, 'paging' => [ 'Products' => [ [maximum depth reached] ] ] ] data => [] query => [ 'page' => '10' ] cookies => [] url => 'lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' base => '' webroot => '/' here => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' trustProxy => false [protected] _environment => [ 'USER' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'www.24a.lv', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'SCRIPT_FILENAME' => '/home/24a/www/webroot/index.php', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'www.24a.lv', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.19.0.5', 'REMOTE_PORT' => '47616', 'REMOTE_ADDR' => '44.213.99.37', 'SERVER_SOFTWARE' => 'nginx/1.23.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/home/24a/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/?page=10', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'page=10', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710844995.145, 'REQUEST_TIME' => (int) 1710844995, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] _input => null [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' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], '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, 'get' => true, 'head' => false, 'options' => false, 'post' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.24a.lv' [private] port => null [private] path => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' [private] query => 'page=10' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => false [protected] _lifetime => '259200' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } 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' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { params => [ 'language' => 'lv', 'pass' => [], 'controller' => 'Collections', 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:language/viesistaba-gulamistaba/mebeles/zurnalu-galdi', 'node' => object(App\Model\Entity\Node) {}, 'breadcrumbs' => [ 'Viesistaba/Guļamistaba' => 'lv/viesistaba-gulamistaba', 'Mēbeles' => 'lv/viesistaba-gulamistaba/mebeles', 'Žurnālu galdi' => 'lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi' ], 'rootNode' => object(App\Model\Entity\Node) {}, 'isAjax' => false, 'paging' => [ 'Products' => [ [maximum depth reached] ] ] ] data => [] query => [ 'page' => '10' ] cookies => [] url => 'lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' base => '' webroot => '/' here => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' trustProxy => false [protected] _environment => [ 'USER' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'www.24a.lv', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'SCRIPT_FILENAME' => '/home/24a/www/webroot/index.php', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'www.24a.lv', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.19.0.5', 'REMOTE_PORT' => '47616', 'REMOTE_ADDR' => '44.213.99.37', 'SERVER_SOFTWARE' => 'nginx/1.23.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/home/24a/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/?page=10', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'page=10', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710844995.145, 'REQUEST_TIME' => (int) 1710844995, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] _input => null [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' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], '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, 'get' => true, 'head' => false, 'options' => false, 'post' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.24a.lv' [private] port => null [private] path => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' [private] query => 'page=10' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => false [protected] _lifetime => '259200' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } 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(Cake\Http\Runner) { [protected] index => (int) 6 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
$params |
|
); |
|
} |
|
|
|
return $next( $request, $response ); |
|
} |
|
} |
|
|
object(Cake\Http\ServerRequest) { params => [ 'language' => 'lv', 'pass' => [], 'controller' => 'Collections', 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:language/viesistaba-gulamistaba/mebeles/zurnalu-galdi', 'node' => object(App\Model\Entity\Node) {}, 'breadcrumbs' => [ 'Viesistaba/Guļamistaba' => 'lv/viesistaba-gulamistaba', 'Mēbeles' => 'lv/viesistaba-gulamistaba/mebeles', 'Žurnālu galdi' => 'lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi' ], 'rootNode' => object(App\Model\Entity\Node) {}, 'isAjax' => false, 'paging' => [ 'Products' => [ [maximum depth reached] ] ] ] data => [] query => [ 'page' => '10' ] cookies => [] url => 'lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' base => '' webroot => '/' here => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' trustProxy => false [protected] _environment => [ 'USER' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'www.24a.lv', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'SCRIPT_FILENAME' => '/home/24a/www/webroot/index.php', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'www.24a.lv', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.19.0.5', 'REMOTE_PORT' => '47616', 'REMOTE_ADDR' => '44.213.99.37', 'SERVER_SOFTWARE' => 'nginx/1.23.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/home/24a/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/?page=10', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'page=10', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710844995.145, 'REQUEST_TIME' => (int) 1710844995, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] _input => null [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' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], '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, 'get' => true, 'head' => false, 'options' => false, 'post' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.24a.lv' [private] port => null [private] path => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' [private] query => 'page=10' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => false [protected] _lifetime => '259200' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } 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' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { params => [ 'language' => 'lv', 'pass' => [], 'controller' => 'Collections', 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:language/viesistaba-gulamistaba/mebeles/zurnalu-galdi', 'node' => object(App\Model\Entity\Node) {}, 'breadcrumbs' => [ 'Viesistaba/Guļamistaba' => 'lv/viesistaba-gulamistaba', 'Mēbeles' => 'lv/viesistaba-gulamistaba/mebeles', 'Žurnālu galdi' => 'lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi' ], 'rootNode' => object(App\Model\Entity\Node) {}, 'isAjax' => false, 'paging' => [ 'Products' => [ [maximum depth reached] ] ] ] data => [] query => [ 'page' => '10' ] cookies => [] url => 'lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' base => '' webroot => '/' here => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' trustProxy => false [protected] _environment => [ 'USER' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'www.24a.lv', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'SCRIPT_FILENAME' => '/home/24a/www/webroot/index.php', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'www.24a.lv', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.19.0.5', 'REMOTE_PORT' => '47616', 'REMOTE_ADDR' => '44.213.99.37', 'SERVER_SOFTWARE' => 'nginx/1.23.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/home/24a/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/?page=10', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'page=10', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710844995.145, 'REQUEST_TIME' => (int) 1710844995, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] _input => null [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' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], '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, 'get' => true, 'head' => false, 'options' => false, 'post' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.24a.lv' [private] port => null [private] path => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' [private] query => 'page=10' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => false [protected] _lifetime => '259200' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } 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(Cake\Http\Runner) { [protected] index => (int) 6 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
I18n::setLocale( $language ); |
|
} |
|
|
|
|
|
return $next( $request, $response ); |
|
} |
|
} |
|
|
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [ 'page' => '10' ] cookies => [] url => 'lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' base => '' webroot => '/' here => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' trustProxy => false [protected] _environment => [ 'USER' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'www.24a.lv', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'SCRIPT_FILENAME' => '/home/24a/www/webroot/index.php', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'www.24a.lv', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.19.0.5', 'REMOTE_PORT' => '47616', 'REMOTE_ADDR' => '44.213.99.37', 'SERVER_SOFTWARE' => 'nginx/1.23.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/home/24a/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/?page=10', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'page=10', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710844995.145, 'REQUEST_TIME' => (int) 1710844995, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] _input => null [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' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], '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(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.24a.lv' [private] port => null [private] path => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' [private] query => 'page=10' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => false [protected] _lifetime => '259200' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } 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' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [ 'page' => '10' ] cookies => [] url => 'lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' base => '' webroot => '/' here => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' trustProxy => false [protected] _environment => [ 'USER' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'www.24a.lv', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'SCRIPT_FILENAME' => '/home/24a/www/webroot/index.php', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'www.24a.lv', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.19.0.5', 'REMOTE_PORT' => '47616', 'REMOTE_ADDR' => '44.213.99.37', 'SERVER_SOFTWARE' => 'nginx/1.23.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/home/24a/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/?page=10', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'page=10', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710844995.145, 'REQUEST_TIME' => (int) 1710844995, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] _input => null [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' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], '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(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.24a.lv' [private] port => null [private] path => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' [private] query => 'page=10' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => false [protected] _lifetime => '259200' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } 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(Cake\Http\Runner) { [protected] index => (int) 6 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
public function __invoke($request, $response, $next) |
|
{ |
|
$url = $request->getUri()->getPath(); |
|
if (strpos($url, '..') !== false || strpos($url, '.') === false) { |
|
return $next($request, $response); |
|
} |
|
|
|
if (strpos($url, '/.') !== false) { |
|
return $next($request, $response); |
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [ 'page' => '10' ] cookies => [] url => 'lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' base => '' webroot => '/' here => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' trustProxy => false [protected] _environment => [ 'USER' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'www.24a.lv', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'SCRIPT_FILENAME' => '/home/24a/www/webroot/index.php', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'www.24a.lv', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.19.0.5', 'REMOTE_PORT' => '47616', 'REMOTE_ADDR' => '44.213.99.37', 'SERVER_SOFTWARE' => 'nginx/1.23.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/home/24a/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/?page=10', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'page=10', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710844995.145, 'REQUEST_TIME' => (int) 1710844995, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] _input => null [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' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], '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(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.24a.lv' [private] port => null [private] path => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' [private] query => 'page=10' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => false [protected] _lifetime => '259200' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } 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' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [ 'page' => '10' ] cookies => [] url => 'lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' base => '' webroot => '/' here => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' trustProxy => false [protected] _environment => [ 'USER' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'www.24a.lv', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'SCRIPT_FILENAME' => '/home/24a/www/webroot/index.php', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'www.24a.lv', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.19.0.5', 'REMOTE_PORT' => '47616', 'REMOTE_ADDR' => '44.213.99.37', 'SERVER_SOFTWARE' => 'nginx/1.23.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/home/24a/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/?page=10', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'page=10', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710844995.145, 'REQUEST_TIME' => (int) 1710844995, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] _input => null [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' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], '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(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.24a.lv' [private] port => null [private] path => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' [private] query => 'page=10' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => false [protected] _lifetime => '259200' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } 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(Cake\Http\Runner) { [protected] index => (int) 6 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
*/ |
|
public function __invoke($request, $response, $next) |
|
{ |
|
try { |
|
return $next($request, $response); |
|
} catch (Throwable $exception) { |
|
return $this->handleException($exception, $request, $response); |
|
} catch (Exception $exception) { |
|
return $this->handleException($exception, $request, $response); |
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [ 'page' => '10' ] cookies => [] url => 'lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' base => '' webroot => '/' here => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' trustProxy => false [protected] _environment => [ 'USER' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'www.24a.lv', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'SCRIPT_FILENAME' => '/home/24a/www/webroot/index.php', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'www.24a.lv', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.19.0.5', 'REMOTE_PORT' => '47616', 'REMOTE_ADDR' => '44.213.99.37', 'SERVER_SOFTWARE' => 'nginx/1.23.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/home/24a/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/?page=10', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'page=10', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710844995.145, 'REQUEST_TIME' => (int) 1710844995, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] _input => null [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' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], '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(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.24a.lv' [private] port => null [private] path => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' [private] query => 'page=10' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => false [protected] _lifetime => '259200' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } 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' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [ 'page' => '10' ] cookies => [] url => 'lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' base => '' webroot => '/' here => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' trustProxy => false [protected] _environment => [ 'USER' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'www.24a.lv', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'SCRIPT_FILENAME' => '/home/24a/www/webroot/index.php', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'www.24a.lv', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.19.0.5', 'REMOTE_PORT' => '47616', 'REMOTE_ADDR' => '44.213.99.37', 'SERVER_SOFTWARE' => 'nginx/1.23.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/home/24a/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/?page=10', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'page=10', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710844995.145, 'REQUEST_TIME' => (int) 1710844995, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] _input => null [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' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], '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(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.24a.lv' [private] port => null [private] path => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' [private] query => 'page=10' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => false [protected] _lifetime => '259200' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } 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(Cake\Http\Runner) { [protected] index => (int) 6 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
{ |
|
$this->middleware = $middleware; |
|
$this->index = 0; |
|
|
|
return $this->__invoke($request, $response); |
|
} |
|
|
|
/** |
|
* @param \Psr\Http\Message\ServerRequestInterface $request The server request |
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [ 'page' => '10' ] cookies => [] url => 'lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' base => '' webroot => '/' here => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' trustProxy => false [protected] _environment => [ 'USER' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'www.24a.lv', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'SCRIPT_FILENAME' => '/home/24a/www/webroot/index.php', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'www.24a.lv', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.19.0.5', 'REMOTE_PORT' => '47616', 'REMOTE_ADDR' => '44.213.99.37', 'SERVER_SOFTWARE' => 'nginx/1.23.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/home/24a/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/?page=10', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'page=10', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710844995.145, 'REQUEST_TIME' => (int) 1710844995, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] _input => null [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' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], '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(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.24a.lv' [private] port => null [private] path => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' [private] query => 'page=10' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => false [protected] _lifetime => '259200' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } 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' => '' }
throw new RuntimeException('The application `middleware` method did not return a middleware queue.'); |
|
} |
|
$this->dispatchEvent('Server.buildMiddleware', ['middleware' => $middleware]); |
|
$middleware->add($this->app); |
|
$response = $this->runner->run($middleware, $request, $response); |
|
|
|
if (!($response instanceof ResponseInterface)) { |
|
throw new RuntimeException(sprintf( |
|
'Application did not create a response. Got "%s" instead.', |
object(Cake\Http\MiddlewareQueue) { [protected] queue => [ (int) 0 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) {}, (int) 1 => object(Cake\Routing\Middleware\AssetMiddleware) {}, (int) 2 => object(App\Middleware\LanguageMiddleware) {}, (int) 3 => object(App\Middleware\RoutingMiddleware) {}, (int) 4 => object(Cake\Routing\Middleware\RoutingMiddleware) {}, (int) 5 => object(App\Application) {} ] [protected] callables => [ (int) 0 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) {}, (int) 1 => object(Cake\Routing\Middleware\AssetMiddleware) {}, (int) 2 => object(App\Middleware\LanguageMiddleware) {}, (int) 3 => object(App\Middleware\RoutingMiddleware) {}, (int) 4 => object(Cake\Routing\Middleware\RoutingMiddleware) {}, (int) 5 => object(App\Application) {} ] } object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [ 'page' => '10' ] cookies => [] url => 'lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' base => '' webroot => '/' here => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' trustProxy => false [protected] _environment => [ 'USER' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'www.24a.lv', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'SCRIPT_FILENAME' => '/home/24a/www/webroot/index.php', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'www.24a.lv', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.19.0.5', 'REMOTE_PORT' => '47616', 'REMOTE_ADDR' => '44.213.99.37', 'SERVER_SOFTWARE' => 'nginx/1.23.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/home/24a/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/?page=10', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'page=10', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710844995.145, 'REQUEST_TIME' => (int) 1710844995, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] _input => null [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' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], '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(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.24a.lv' [private] port => null [private] path => '/lv/viesistaba-gulamistaba/mebeles/zurnalu-galdi/' [private] query => 'page=10' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => false [protected] _lifetime => '259200' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } 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' => '' }
$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 src/Template/Error/error400.ctp