$this->getTempEcomUserId(),
$product['upc'],
1,
App\Controller\EcomCartsController::add() /home/undologic/www/shop/src/Controller/EcomCartsController.php, line 401 Cake\Controller\Controller::invokeAction() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Controller/Controller.php, line 547 Cake\Controller\ControllerFactory::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 139 Cake\Controller\ControllerFactory::invoke() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 114 Cake\Http\BaseApplication::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 320 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 86 App\Middleware\AccessMiddleware::process() /home/undologic/www/shop/src/Middleware/AccessMiddleware.php, line 74 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 App\Middleware\RbacMiddleware::process() /home/undologic/www/shop/src/Middleware/RbacMiddleware.php, line 32 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 App\Middleware\LangMiddleware::process() /home/undologic/www/shop/src/Middleware/LangMiddleware.php, line 83 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Authentication\Middleware\AuthenticationMiddleware::process() /home/undologic/www/shop/vendor/cakephp/authentication/src/Middleware/AuthenticationMiddleware.php, line 124 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Middleware\BodyParserMiddleware::process() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Routing\Middleware\RoutingMiddleware::process() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 186 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Routing\Middleware\AssetMiddleware::process() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php, line 68 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Error\Middleware\ErrorHandlerMiddleware::process() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 131 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner::run() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 67 Cake\Http\Server::run() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Server.php, line 90 [main] /home/undologic/www/shop/webroot/index.php, line 40
1,
$product['description'],
$product['higher_price'],
App\Controller\EcomCartsController::add() /home/undologic/www/shop/src/Controller/EcomCartsController.php, line 403 Cake\Controller\Controller::invokeAction() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Controller/Controller.php, line 547 Cake\Controller\ControllerFactory::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 139 Cake\Controller\ControllerFactory::invoke() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 114 Cake\Http\BaseApplication::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 320 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 86 App\Middleware\AccessMiddleware::process() /home/undologic/www/shop/src/Middleware/AccessMiddleware.php, line 74 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 App\Middleware\RbacMiddleware::process() /home/undologic/www/shop/src/Middleware/RbacMiddleware.php, line 32 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 App\Middleware\LangMiddleware::process() /home/undologic/www/shop/src/Middleware/LangMiddleware.php, line 83 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Authentication\Middleware\AuthenticationMiddleware::process() /home/undologic/www/shop/vendor/cakephp/authentication/src/Middleware/AuthenticationMiddleware.php, line 124 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Middleware\BodyParserMiddleware::process() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Routing\Middleware\RoutingMiddleware::process() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 186 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Routing\Middleware\AssetMiddleware::process() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php, line 68 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Error\Middleware\ErrorHandlerMiddleware::process() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 131 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner::run() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 67 Cake\Http\Server::run() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Server.php, line 90 [main] /home/undologic/www/shop/webroot/index.php, line 40
$product['description'],
$product['higher_price'],
$product['sale_price'],
App\Controller\EcomCartsController::add() /home/undologic/www/shop/src/Controller/EcomCartsController.php, line 404 Cake\Controller\Controller::invokeAction() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Controller/Controller.php, line 547 Cake\Controller\ControllerFactory::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 139 Cake\Controller\ControllerFactory::invoke() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 114 Cake\Http\BaseApplication::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 320 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 86 App\Middleware\AccessMiddleware::process() /home/undologic/www/shop/src/Middleware/AccessMiddleware.php, line 74 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 App\Middleware\RbacMiddleware::process() /home/undologic/www/shop/src/Middleware/RbacMiddleware.php, line 32 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 App\Middleware\LangMiddleware::process() /home/undologic/www/shop/src/Middleware/LangMiddleware.php, line 83 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Authentication\Middleware\AuthenticationMiddleware::process() /home/undologic/www/shop/vendor/cakephp/authentication/src/Middleware/AuthenticationMiddleware.php, line 124 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Middleware\BodyParserMiddleware::process() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Routing\Middleware\RoutingMiddleware::process() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 186 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Routing\Middleware\AssetMiddleware::process() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php, line 68 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Error\Middleware\ErrorHandlerMiddleware::process() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 131 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner::run() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 67 Cake\Http\Server::run() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Server.php, line 90 [main] /home/undologic/www/shop/webroot/index.php, line 40
$product['higher_price'],
$product['sale_price'],
$product['image'],
App\Controller\EcomCartsController::add() /home/undologic/www/shop/src/Controller/EcomCartsController.php, line 405 Cake\Controller\Controller::invokeAction() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Controller/Controller.php, line 547 Cake\Controller\ControllerFactory::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 139 Cake\Controller\ControllerFactory::invoke() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 114 Cake\Http\BaseApplication::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 320 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 86 App\Middleware\AccessMiddleware::process() /home/undologic/www/shop/src/Middleware/AccessMiddleware.php, line 74 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 App\Middleware\RbacMiddleware::process() /home/undologic/www/shop/src/Middleware/RbacMiddleware.php, line 32 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 App\Middleware\LangMiddleware::process() /home/undologic/www/shop/src/Middleware/LangMiddleware.php, line 83 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Authentication\Middleware\AuthenticationMiddleware::process() /home/undologic/www/shop/vendor/cakephp/authentication/src/Middleware/AuthenticationMiddleware.php, line 124 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Middleware\BodyParserMiddleware::process() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Routing\Middleware\RoutingMiddleware::process() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 186 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Routing\Middleware\AssetMiddleware::process() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php, line 68 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Error\Middleware\ErrorHandlerMiddleware::process() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 131 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner::run() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 67 Cake\Http\Server::run() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Server.php, line 90 [main] /home/undologic/www/shop/webroot/index.php, line 40
$product['sale_price'],
$product['image'],
$this->getEcomStoreId(),
App\Controller\EcomCartsController::add() /home/undologic/www/shop/src/Controller/EcomCartsController.php, line 406 Cake\Controller\Controller::invokeAction() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Controller/Controller.php, line 547 Cake\Controller\ControllerFactory::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 139 Cake\Controller\ControllerFactory::invoke() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 114 Cake\Http\BaseApplication::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 320 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 86 App\Middleware\AccessMiddleware::process() /home/undologic/www/shop/src/Middleware/AccessMiddleware.php, line 74 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 App\Middleware\RbacMiddleware::process() /home/undologic/www/shop/src/Middleware/RbacMiddleware.php, line 32 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 App\Middleware\LangMiddleware::process() /home/undologic/www/shop/src/Middleware/LangMiddleware.php, line 83 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Authentication\Middleware\AuthenticationMiddleware::process() /home/undologic/www/shop/vendor/cakephp/authentication/src/Middleware/AuthenticationMiddleware.php, line 124 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Middleware\BodyParserMiddleware::process() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Routing\Middleware\RoutingMiddleware::process() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 186 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Routing\Middleware\AssetMiddleware::process() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php, line 68 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Error\Middleware\ErrorHandlerMiddleware::process() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 131 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner::run() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 67 Cake\Http\Server::run() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Server.php, line 90 [main] /home/undologic/www/shop/webroot/index.php, line 40
$this->getEcomStoreId(),
$product['original_price']
App\Controller\EcomCartsController::add() /home/undologic/www/shop/src/Controller/EcomCartsController.php, line 408 Cake\Controller\Controller::invokeAction() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Controller/Controller.php, line 547 Cake\Controller\ControllerFactory::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 139 Cake\Controller\ControllerFactory::invoke() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 114 Cake\Http\BaseApplication::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 320 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 86 App\Middleware\AccessMiddleware::process() /home/undologic/www/shop/src/Middleware/AccessMiddleware.php, line 74 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 App\Middleware\RbacMiddleware::process() /home/undologic/www/shop/src/Middleware/RbacMiddleware.php, line 32 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 App\Middleware\LangMiddleware::process() /home/undologic/www/shop/src/Middleware/LangMiddleware.php, line 83 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Authentication\Middleware\AuthenticationMiddleware::process() /home/undologic/www/shop/vendor/cakephp/authentication/src/Middleware/AuthenticationMiddleware.php, line 124 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Middleware\BodyParserMiddleware::process() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Routing\Middleware\RoutingMiddleware::process() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 186 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Routing\Middleware\AssetMiddleware::process() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php, line 68 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Error\Middleware\ErrorHandlerMiddleware::process() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 131 Cake\Http\Runner::handle() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner::run() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Runner.php, line 67 Cake\Http\Server::run() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Server.php, line 90 [main] /home/undologic/www/shop/webroot/index.php, line 40
$message = "Unable to emit headers. Headers sent in file=$file line=$line";
trigger_error($message, E_USER_WARNING);
}
Cake\Http\ResponseEmitter::emit() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 71 Cake\Http\Server::emit() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Server.php, line 128 [main] /home/undologic/www/shop/webroot/index.php, line 40
$response->getStatusCode(),
($reasonPhrase ? ' ' . $reasonPhrase : '')
));
header [internal], line ?? Cake\Http\ResponseEmitter::emitStatusLine() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 168 Cake\Http\ResponseEmitter::emit() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 74 Cake\Http\Server::emit() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Server.php, line 128 [main] /home/undologic/www/shop/webroot/index.php, line 40
foreach ($values as $value) {
header(sprintf(
'%s: %s',
header [internal], line ?? Cake\Http\ResponseEmitter::emitHeaders() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 197 Cake\Http\ResponseEmitter::emit() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 75 Cake\Http\Server::emit() /home/undologic/www/shop/vendor/cakephp/cakephp/src/Http/Server.php, line 128 [main] /home/undologic/www/shop/webroot/index.php, line 40
EcomCarts.upc
is missing operator (IS, IS NOT) with null
value.
📋
continue; |
|
} |
|
|
|
if (!$numericKey) { |
|
$this->_conditions[] = $this->_parseCondition($k, $c); |
|
} |
|
} |
|
} |
|
|
|
|
return $this; |
|
} |
|
|
|
$this->_addConditions($conditions, $types); |
|
|
|
return $this; |
|
} |
|
|
{ |
|
$this->setTypeMap($types); |
|
$this->setConjunction(strtoupper($conjunction)); |
|
if (!empty($conditions)) { |
|
$this->add($conditions, $this->getTypeMap()->getTypes()); |
|
} |
|
} |
|
|
|
/** |
continue; |
|
} |
|
|
|
if ($numericKey && $isArray || $isOperator) { |
|
$this->_conditions[] = new static($c, $typeMap, $numericKey ? 'AND' : $k); |
|
continue; |
|
} |
|
|
|
if ($isNot) { |
|
|
return $this; |
|
} |
|
|
|
$this->_addConditions($conditions, $types); |
|
|
|
return $this; |
|
} |
|
|
$append = $append($this->newExpr(), $this); |
|
} |
|
|
|
if ($expression->getConjunction() === $conjunction) { |
|
$expression->add($append, $types); |
|
} else { |
|
$expression = $this->newExpr() |
|
->setConjunction($conjunction) |
|
->add([$expression, $append], $types); |
{ |
|
if ($overwrite) { |
|
$this->_parts['where'] = $this->newExpr(); |
|
} |
|
$this->_conjugate('where', $conditions, 'AND', $types); |
|
|
|
return $this; |
|
} |
|
|
$conditions = [ |
|
['EcomCarts.upc' => $upc], |
|
['EcomCarts.user' => $user_id], |
|
]; |
|
$found = $this->find()->where($conditions)->first(); |
|
if ($found) { |
|
return $found['id']; |
|
} |
|
return false; |
{ |
|
//pr($group_id); |
|
$response = ['STATUS' => 200, 'MSG' => 'Added to cart']; |
|
$entity = $this->newEmptyEntity(); |
|
$cart_id = $this->ensureExists($user, $upc); |
|
|
|
|
|
$ecom_delivery_id = $this->EcomDeliveries->getByUser($user); |
|
// pr($ecom_delivery_id); exit; |
$product['higher_price'],
|
|
$product['sale_price'],
|
|
$product['image'],
|
|
$this->getEcomStoreId(),
|
|
$product['original_price']
|
|
|
|
);
|
|
|
|
//dd($response);
|
* @throws \UnexpectedValueException If return value of action is not `null` or `ResponseInterface` instance. |
|
*/ |
|
public function invokeAction(Closure $action, array $args): void |
|
{ |
|
$result = $action(...$args); |
|
if ($result !== null && !$result instanceof ResponseInterface) { |
|
throw new UnexpectedValueException(sprintf( |
|
'Controller actions can only return ResponseInterface instance or null. ' |
|
. 'Got %s instead.', |
$args = $this->getActionArgs( |
|
$action, |
|
array_values((array)$controller->getRequest()->getParam('pass')) |
|
); |
|
$controller->invokeAction($action, $args); |
|
|
|
$result = $controller->shutdownProcess(); |
|
if ($result instanceof ResponseInterface) { |
|
return $result; |
|
|
return $runner->run($middlewareQueue, $controller->getRequest(), $this); |
|
} |
|
|
|
return $this->handle($controller->getRequest()); |
|
} |
|
|
|
/** |
|
* Invoke the action. |
} |
|
|
|
$controller = $this->controllerFactory->create($request); |
|
|
|
return $this->controllerFactory->invoke($controller); |
|
} |
|
} |
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
|
} |
|
|
|
return new Response([ |
|
'body' => 'Middleware queue was exhausted without returning a response ' |
} else { |
|
//no prefix, so not need to force a login |
|
} |
|
|
|
return $handler->handle($request); |
|
} |
|
} |
|
|
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
{ |
|
//simply get the current RBAC access if the user is logged in |
|
$loggedUser = $request->getAttribute('identity'); |
|
if (!$loggedUser) { |
|
return $handler->handle($request); |
|
} |
|
//dd($loggedUser); |
|
|
|
//the user is logged in - add that access to the request |
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
|
|
//pr('current_lang: '.$request->getAttribute('lang')); |
|
//dd($request); |
|
|
|
return $handler->handle($request); |
|
} |
|
} |
|
|
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
$request = $request->withAttribute('authentication', $service); |
|
$request = $request->withAttribute('authenticationResult', $result); |
|
|
|
try { |
|
$response = $handler->handle($request); |
|
$authenticator = $service->getAuthenticationProvider(); |
|
|
|
if ($authenticator !== null && !$authenticator instanceof StatelessInterface) { |
|
$return = $service->persistIdentity($request, $response, $result->getData()); |
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
*/ |
|
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
{ |
|
if (!in_array($request->getMethod(), $this->methods, true)) { |
|
return $handler->handle($request); |
|
} |
|
[$type] = explode(';', $request->getHeaderLine('Content-Type')); |
|
$type = strtolower($type); |
|
if (!isset($this->parsers[$type])) { |
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
); |
|
} |
|
$matching = Router::getRouteCollection()->getMiddleware($middleware); |
|
if (!$matching) { |
|
return $handler->handle($request); |
|
} |
|
|
|
$middleware = new MiddlewareQueue($matching); |
|
$runner = new Runner(); |
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
{ |
|
$url = $request->getUri()->getPath(); |
|
if (strpos($url, '..') !== false || strpos($url, '.') === false) { |
|
return $handler->handle($request); |
|
} |
|
|
|
if (strpos($url, '/.') !== false) { |
|
return $handler->handle($request); |
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
*/ |
|
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
{ |
|
try { |
|
return $handler->handle($request); |
|
} catch (RedirectException $exception) { |
|
return $this->handleRedirect($exception); |
|
} catch (Throwable $exception) { |
|
return $this->handleException($exception, $request); |
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
) { |
|
Router::setRequest($request); |
|
} |
|
|
|
return $this->handle($request); |
|
|