Notice (8): Undefined variable: _SESSION [APP/Form/SearchForm.php, line 192]Code Contextif (is_callable($lastError)) {
return call_user_func_array($lastError, [$errno, $errstr, $errfile, $errline]);
} else {
FacebookAds\CrashReporter::FacebookAds\{closure}() - ROOT/vendor/facebook/php-business-sdk/src/FacebookAds/CrashReporter.php, line 154 App\Form\SearchForm::getSeachQuery() - APP/Form/SearchForm.php, line 192 App\Controller\HomeController::search() - APP/Controller/HomeController.php, line 792 Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 440 Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 119 Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 93 Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 109 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 104 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 App\Middleware\RoutingMiddleware::__invoke() - APP/Middleware/RoutingMiddleware.php, line 215 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 App\Middleware\LanguageMiddleware::__invoke() - APP/Middleware/LanguageMiddleware.php, line 51 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 88 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
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` FROM products Products WHERE (Products.active = :c0 AND Products.has_special_offer = :c1 AND Products.has_discount = :c2) ORDER BY CASE WHEN Products.has_discount = :c3 THEN Products.discount_price ELSE Products.price END ASC LIMIT 40 OFFSET 40', 'params' => [ ':c0' => [ 'value' => (int) 1, 'type' => 'boolean', 'placeholder' => 'c0' ], ':c1' => [ 'value' => (int) 1, 'type' => 'boolean', 'placeholder' => 'c1' ], ':c2' => [ 'value' => (int) 1, 'type' => 'boolean', 'placeholder' => 'c2' ], ':c3' => [ 'value' => '1', 'type' => 'boolean', 'placeholder' => 'c3' ] ], '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', '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' ], 'decorators' => (int) 1, 'executed' => true, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 0, 'mapReducers' => (int) 0, 'contain' => [ 'ProductsColors' => [], 'images' => [] ], '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) 40, 'maxLimit' => (int) 240 ]
$query = $productsTable->find()->contain( [ 'ProductsColors' ] ); |
|
$products = $searchForm->getSeachQuery( $query ); |
|
$totalProductCount = $productsTable->find()->where( [ 'Products.active' => 1 ] )->count(); |
|
|
|
$this->set( 'products', $this->paginate( $products ) ); |
|
$this->set( 'totalProductCount', $totalProductCount ); |
|
$this->set( 'paginationOptions', AppController::$publicPaginationOptions ); |
|
$this->set( 'searchForm', $searchForm ); |
|
$this->set( 'customTitle', __( 'Meklēt preci' ) ); |
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` FROM products Products WHERE (Products.active = :c0 AND Products.has_special_offer = :c1 AND Products.has_discount = :c2) ORDER BY CASE WHEN Products.has_discount = :c3 THEN Products.discount_price ELSE Products.price END ASC LIMIT 40 OFFSET 40', 'params' => [ ':c0' => [ 'value' => (int) 1, 'type' => 'boolean', 'placeholder' => 'c0' ], ':c1' => [ 'value' => (int) 1, 'type' => 'boolean', 'placeholder' => 'c1' ], ':c2' => [ 'value' => (int) 1, 'type' => 'boolean', 'placeholder' => 'c2' ], ':c3' => [ 'value' => '1', 'type' => 'boolean', 'placeholder' => 'c3' ] ], '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', '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' ], 'decorators' => (int) 1, 'executed' => true, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 0, 'mapReducers' => (int) 0, 'contain' => [ 'ProductsColors' => [], 'images' => [] ], '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' } }
} |
|
/* @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\HomeController) { 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 ] name => 'Home' request => object(Cake\Http\ServerRequest) { params => [ [maximum depth reached] ] data => [[maximum depth reached]] query => [ [maximum depth reached] ] cookies => [[maximum depth reached]] url => 'lv/search' base => '' webroot => '/' here => '/lv/search' 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 => 'Home' viewClass => null viewVars => [ 'projectName' => ' | 24a.lv', 'isLoggedIn' => false, 'isAdmin' => false, 'acceptedCookies' => false, 'languageLinks' => [ 'lv' => '/lv/search?hasSpecialOffer=1&page=2', 'ru' => '/ru/search?hasSpecialOffer=1&page=2', 'en' => '/en/search?hasSpecialOffer=1&page=2', 'ee' => '/ee/search?hasSpecialOffer=1&page=2', 'de' => '/de/search?hasSpecialOffer=1&page=2' ], 'searchForm' => object(App\Form\SearchForm) {}, 'breadcrumbs' => [ 'Sākums' => '/lv/' ], '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] Products => null [protected] Nodes => null [protected] FacebookConversion => object(App\Controller\Component\FacebookConversionComponent) { '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) 1, 'parent_id' => null, 'lft' => (int) 1, 'rght' => (int) 252, 'controller' => 'App\Controller\HomeController', 'title' => 'Sākums', 'slug' => '/', 'active' => true, 'data' => [ [maximum depth reached] ], 'created' => null, '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\HomeController) {}, '_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' => 'Home', 'action' => 'search', 'plugin' => null, '_matchedRoute' => '/:language/search', 'node' => object(App\Model\Entity\Node) {}, 'breadcrumbs' => [], 'rootNode' => object(App\Model\Entity\Node) {}, 'isAjax' => false, 'paging' => [ 'Products' => [ [maximum depth reached] ] ] ] data => [] query => [ 'hasSpecialOffer' => '1', 'page' => '2' ] cookies => [] url => 'lv/search' base => '' webroot => '/' here => '/lv/search' 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' => '47996', 'REMOTE_ADDR' => '44.197.251.102', '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/search?hasSpecialOffer=1&page=2', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'hasSpecialOffer=1&page=2', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710813239.2172, 'REQUEST_TIME' => (int) 1710813239, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_REFERER' => 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/search' [private] query => 'hasSpecialOffer=1&page=2' [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' => 'Home', 'action' => 'search', 'plugin' => null, '_matchedRoute' => '/:language/search', 'node' => object(App\Model\Entity\Node) {}, 'breadcrumbs' => [], 'rootNode' => object(App\Model\Entity\Node) {}, 'isAjax' => false, 'paging' => [ 'Products' => [ [maximum depth reached] ] ] ] data => [] query => [ 'hasSpecialOffer' => '1', 'page' => '2' ] cookies => [] url => 'lv/search' base => '' webroot => '/' here => '/lv/search' 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' => '47996', 'REMOTE_ADDR' => '44.197.251.102', '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/search?hasSpecialOffer=1&page=2', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'hasSpecialOffer=1&page=2', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710813239.2172, 'REQUEST_TIME' => (int) 1710813239, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_REFERER' => 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/search' [private] query => 'hasSpecialOffer=1&page=2' [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' => 'Home', 'action' => 'search', 'plugin' => null, '_matchedRoute' => '/:language/search', 'node' => object(App\Model\Entity\Node) {}, 'breadcrumbs' => [], 'rootNode' => object(App\Model\Entity\Node) {}, 'isAjax' => false, 'paging' => [ 'Products' => [ [maximum depth reached] ] ] ] data => [] query => [ 'hasSpecialOffer' => '1', 'page' => '2' ] cookies => [] url => 'lv/search' base => '' webroot => '/' here => '/lv/search' 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' => '47996', 'REMOTE_ADDR' => '44.197.251.102', '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/search?hasSpecialOffer=1&page=2', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'hasSpecialOffer=1&page=2', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710813239.2172, 'REQUEST_TIME' => (int) 1710813239, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_REFERER' => 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/search' [private] query => 'hasSpecialOffer=1&page=2' [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' => 'Home', 'action' => 'search', 'plugin' => null, '_matchedRoute' => '/:language/search', 'node' => object(App\Model\Entity\Node) {}, 'breadcrumbs' => [], 'rootNode' => object(App\Model\Entity\Node) {}, 'isAjax' => false, 'paging' => [ 'Products' => [ [maximum depth reached] ] ] ] data => [] query => [ 'hasSpecialOffer' => '1', 'page' => '2' ] cookies => [] url => 'lv/search' base => '' webroot => '/' here => '/lv/search' 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' => '47996', 'REMOTE_ADDR' => '44.197.251.102', '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/search?hasSpecialOffer=1&page=2', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'hasSpecialOffer=1&page=2', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710813239.2172, 'REQUEST_TIME' => (int) 1710813239, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_REFERER' => 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/search' [private] query => 'hasSpecialOffer=1&page=2' [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' => 'Home', 'action' => 'search', 'plugin' => null, '_matchedRoute' => '/:language/search', 'node' => object(App\Model\Entity\Node) {}, 'breadcrumbs' => [], 'rootNode' => object(App\Model\Entity\Node) {}, 'isAjax' => false, 'paging' => [ 'Products' => [ [maximum depth reached] ] ] ] data => [] query => [ 'hasSpecialOffer' => '1', 'page' => '2' ] cookies => [] url => 'lv/search' base => '' webroot => '/' here => '/lv/search' 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' => '47996', 'REMOTE_ADDR' => '44.197.251.102', '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/search?hasSpecialOffer=1&page=2', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'hasSpecialOffer=1&page=2', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710813239.2172, 'REQUEST_TIME' => (int) 1710813239, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_REFERER' => 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/search' [private] query => 'hasSpecialOffer=1&page=2' [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' => 'Home', 'action' => 'search', 'plugin' => null, '_matchedRoute' => '/:language/search', 'node' => object(App\Model\Entity\Node) {}, 'breadcrumbs' => [], 'rootNode' => object(App\Model\Entity\Node) {}, 'isAjax' => false, 'paging' => [ 'Products' => [ [maximum depth reached] ] ] ] data => [] query => [ 'hasSpecialOffer' => '1', 'page' => '2' ] cookies => [] url => 'lv/search' base => '' webroot => '/' here => '/lv/search' 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' => '47996', 'REMOTE_ADDR' => '44.197.251.102', '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/search?hasSpecialOffer=1&page=2', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'hasSpecialOffer=1&page=2', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710813239.2172, 'REQUEST_TIME' => (int) 1710813239, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_REFERER' => 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/search' [private] query => 'hasSpecialOffer=1&page=2' [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 => [ 'hasSpecialOffer' => '1', 'page' => '2' ] cookies => [] url => 'lv/search' base => '' webroot => '/' here => '/lv/search' 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' => '47996', 'REMOTE_ADDR' => '44.197.251.102', '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/search?hasSpecialOffer=1&page=2', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'hasSpecialOffer=1&page=2', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710813239.2172, 'REQUEST_TIME' => (int) 1710813239, '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/search' [private] query => 'hasSpecialOffer=1&page=2' [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 => [ 'hasSpecialOffer' => '1', 'page' => '2' ] cookies => [] url => 'lv/search' base => '' webroot => '/' here => '/lv/search' 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' => '47996', 'REMOTE_ADDR' => '44.197.251.102', '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/search?hasSpecialOffer=1&page=2', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'hasSpecialOffer=1&page=2', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710813239.2172, 'REQUEST_TIME' => (int) 1710813239, '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/search' [private] query => 'hasSpecialOffer=1&page=2' [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 => [ 'hasSpecialOffer' => '1', 'page' => '2' ] cookies => [] url => 'lv/search' base => '' webroot => '/' here => '/lv/search' 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' => '47996', 'REMOTE_ADDR' => '44.197.251.102', '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/search?hasSpecialOffer=1&page=2', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'hasSpecialOffer=1&page=2', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710813239.2172, 'REQUEST_TIME' => (int) 1710813239, '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/search' [private] query => 'hasSpecialOffer=1&page=2' [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 => [ 'hasSpecialOffer' => '1', 'page' => '2' ] cookies => [] url => 'lv/search' base => '' webroot => '/' here => '/lv/search' 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' => '47996', 'REMOTE_ADDR' => '44.197.251.102', '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/search?hasSpecialOffer=1&page=2', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'hasSpecialOffer=1&page=2', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710813239.2172, 'REQUEST_TIME' => (int) 1710813239, '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/search' [private] query => 'hasSpecialOffer=1&page=2' [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 => [ 'hasSpecialOffer' => '1', 'page' => '2' ] cookies => [] url => 'lv/search' base => '' webroot => '/' here => '/lv/search' 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' => '47996', 'REMOTE_ADDR' => '44.197.251.102', '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/search?hasSpecialOffer=1&page=2', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'hasSpecialOffer=1&page=2', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710813239.2172, 'REQUEST_TIME' => (int) 1710813239, '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/search' [private] query => 'hasSpecialOffer=1&page=2' [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 => [ 'hasSpecialOffer' => '1', 'page' => '2' ] cookies => [] url => 'lv/search' base => '' webroot => '/' here => '/lv/search' 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' => '47996', 'REMOTE_ADDR' => '44.197.251.102', '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/search?hasSpecialOffer=1&page=2', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'hasSpecialOffer=1&page=2', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710813239.2172, 'REQUEST_TIME' => (int) 1710813239, '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/search' [private] query => 'hasSpecialOffer=1&page=2' [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 => [ 'hasSpecialOffer' => '1', 'page' => '2' ] cookies => [] url => 'lv/search' base => '' webroot => '/' here => '/lv/search' 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' => '47996', 'REMOTE_ADDR' => '44.197.251.102', '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/search?hasSpecialOffer=1&page=2', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'hasSpecialOffer=1&page=2', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710813239.2172, 'REQUEST_TIME' => (int) 1710813239, '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/search' [private] query => 'hasSpecialOffer=1&page=2' [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 => [ 'hasSpecialOffer' => '1', 'page' => '2' ] cookies => [] url => 'lv/search' base => '' webroot => '/' here => '/lv/search' 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' => '47996', 'REMOTE_ADDR' => '44.197.251.102', '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/search?hasSpecialOffer=1&page=2', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'hasSpecialOffer=1&page=2', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710813239.2172, 'REQUEST_TIME' => (int) 1710813239, '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/search' [private] query => 'hasSpecialOffer=1&page=2' [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