CartController :: addToCartAction
Request
GET Parameters
Key | Value |
---|---|
id | "401" |
POST Parameters
No POST parameters
Uploaded Files
No files were uploaded
Request Attributes
Key | Value |
---|---|
_controller | "App\Controller\CartController::addToCartAction" |
_editmode | false |
_firewall_context | "security.firewall.map.context.demo_frontend" |
_locale | "en" |
_pimcore_context | "default" |
_pimcore_frontend_request | true |
_redirected | true |
_route | "shop-add-to-cart" |
_route_params | [ "_locale" => "en" ] |
_security_firewall_run | "_security_demo_frontend" |
_stopwatch_token | "5fcb7e" |
contentDocument | Pimcore\Model\Document\Link {#2089 #dao: null #dependencies: null #__dataVersionTimestamp: 1566463801 #_fulldump: false #o_dirtyFields: null #fullPathCache: null #id: 3 #parentId: 1 #parent: null #type: "link" #key: "en" #path: "/" #index: 0 #published: true #creationDate: 1562571033 #modificationDate: 1566463801 #userOwner: 2 #userModification: 2 #properties: [ "footer" => Pimcore\Model\Property {#2086 #dao: null #name: "footer" #data: "12" #type: "document" #ctype: "document" #cpath: null #cid: 3 #inheritable: true #inherited: true : "footer" : "12" : "document" : "document" : null : 3 : true : true } "language" => Pimcore\Model\Property {#2095 #dao: null #name: "language" #data: "en" #type: "text" #ctype: "document" #cpath: null #cid: 3 #inheritable: true #inherited: true : "language" : "en" : "text" : "document" : null : 3 : true : true } "left_nav_show" => Pimcore\Model\Property {#2098 #dao: null #name: "left_nav_show" #data: false #type: "bool" #ctype: "document" #cpath: null #cid: 3 #inheritable: true #inherited: true : "left_nav_show" : false : "bool" : "document" : null : 3 : true : true } "left_nav_start_node" => Pimcore\Model\Property {#2097 #dao: null #name: "left_nav_start_node" #data: "3" #type: "document" #ctype: "document" #cpath: null #cid: 3 #inheritable: true #inherited: true : "left_nav_start_node" : "3" : "document" : "document" : null : 3 : true : true } "navigation_root" => Pimcore\Model\Property {#2091 #dao: null #name: "navigation_root" #data: "3" #type: "document" #ctype: "document" #cpath: null #cid: 3 #inheritable: true #inherited: true : "navigation_root" : "3" : "document" : "document" : null : 3 : true : true } "news_default_document" => Pimcore\Model\Property {#2088 #dao: null #name: "news_default_document" #data: "65" #type: "document" #ctype: "document" #cpath: null #cid: 3 #inheritable: true #inherited: false : "news_default_document" : "65" : "document" : "document" : null : 3 : true : false } "newsletter_confirm_mail" => Pimcore\Model\Property {#2087 #dao: null #name: "newsletter_confirm_mail" #data: "105" #type: "document" #ctype: "document" #cpath: null #cid: 3 #inheritable: true #inherited: true : "newsletter_confirm_mail" : "105" : "document" : "document" : null : 3 : true : true } "password_reset_mail" => Pimcore\Model\Property {#2094 #dao: null #name: "password_reset_mail" #data: "93" #type: "document" #ctype: "document" #cpath: null #cid: 3 #inheritable: true #inherited: true : "password_reset_mail" : "93" : "document" : "document" : null : 3 : true : true } "terms_and_conditions" => Pimcore\Model\Property {#2090 #dao: null #name: "terms_and_conditions" #data: "88" #type: "document" #ctype: "document" #cpath: null #cid: 3 #inheritable: true #inherited: false : "terms_and_conditions" : "88" : "document" : "document" : null : 3 : true : false } "navigation_accesskey" => Pimcore\Model\Property {#2085 #dao: null #name: "navigation_accesskey" #data: "" #type: "text" #ctype: "document" #cpath: null #cid: 3 #inheritable: false #inherited: false : "navigation_accesskey" : "" : "text" : "document" : null : 3 : false : false } "navigation_anchor" => Pimcore\Model\Property {#2084 #dao: null #name: "navigation_anchor" #data: "" #type: "text" #ctype: "document" #cpath: null #cid: 3 #inheritable: false #inherited: false : "navigation_anchor" : "" : "text" : "document" : null : 3 : false : false } "navigation_class" => Pimcore\Model\Property {#2083 #dao: null #name: "navigation_class" #data: "" #type: "text" #ctype: "document" #cpath: null #cid: 3 #inheritable: false #inherited: false : "navigation_class" : "" : "text" : "document" : null : 3 : false : false } "navigation_exclude" => Pimcore\Model\Property {#2082 #dao: null #name: "navigation_exclude" #data: true #type: "bool" #ctype: "document" #cpath: null #cid: 3 #inheritable: false #inherited: false : "navigation_exclude" : true : "bool" : "document" : null : 3 : false : false } "navigation_name" => Pimcore\Model\Property {#2081 #dao: null #name: "navigation_name" #data: "en" #type: "text" #ctype: "document" #cpath: null #cid: 3 #inheritable: false #inherited: false : "navigation_name" : "en" : "text" : "document" : null : 3 : false : false } "navigation_parameters" => Pimcore\Model\Property {#2080 #dao: null #name: "navigation_parameters" #data: "" #type: "text" #ctype: "document" #cpath: null #cid: 3 #inheritable: false #inherited: false : "navigation_parameters" : "" : "text" : "document" : null : 3 : false : false } "navigation_relation" => Pimcore\Model\Property {#2079 #dao: null #name: "navigation_relation" #data: "" #type: "text" #ctype: "document" #cpath: null #cid: 3 #inheritable: false #inherited: false : "navigation_relation" : "" : "text" : "document" : null : 3 : false : false } "navigation_tabindex" => Pimcore\Model\Property {#2078 #dao: null #name: "navigation_tabindex" #data: "" #type: "text" #ctype: "document" #cpath: null #cid: 3 #inheritable: false #inherited: false : "navigation_tabindex" : "" : "text" : "document" : null : 3 : false : false } "navigation_target" => Pimcore\Model\Property {#2077 #dao: null #name: "navigation_target" #data: null #type: "text" #ctype: "document" #cpath: null #cid: 3 #inheritable: false #inherited: false : "navigation_target" : null : "text" : "document" : null : 3 : false : false } "navigation_title" => Pimcore\Model\Property {#2076 #dao: null #name: "navigation_title" #data: "Oldimer Cars" #type: "text" #ctype: "document" #cpath: null #cid: 3 #inheritable: false #inherited: false : "navigation_title" : "Oldimer Cars" : "text" : "document" : null : 3 : false : false } "sidebar" => Pimcore\Model\Property {#2075 #dao: null #name: "sidebar" #data: "36" #type: "document" #ctype: "document" #cpath: null #cid: 3 #inheritable: true #inherited: false : "sidebar" : "36" : "document" : "document" : null : 3 : true : false } ] #children: [] #hasChildren: [] #siblings: [] #hasSiblings: [] #locked: null #versionCount: 16 #internal: 1 #internalType: "document" #object: null #direct: "" #linktype: "internal" #href: "/" #scheduledTasks: null +"____pimcore_cache_item__": "document_3" : null : 1566463801 : false : null : null : 3 : 1 : null : "link" : "en" : "/" : 0 : true : 1562571033 : 1566463801 : 2 : 2 : [ "footer" => Pimcore\Model\Property {#2086} "language" => Pimcore\Model\Property {#2095} "left_nav_show" => Pimcore\Model\Property {#2098} "left_nav_start_node" => Pimcore\Model\Property {#2097} "navigation_root" => Pimcore\Model\Property {#2091} "news_default_document" => Pimcore\Model\Property {#2088} "newsletter_confirm_mail" => Pimcore\Model\Property {#2087} "password_reset_mail" => Pimcore\Model\Property {#2094} "terms_and_conditions" => Pimcore\Model\Property {#2090} "navigation_accesskey" => Pimcore\Model\Property {#2085} "navigation_anchor" => Pimcore\Model\Property {#2084} "navigation_class" => Pimcore\Model\Property {#2083} "navigation_exclude" => Pimcore\Model\Property {#2082} "navigation_name" => Pimcore\Model\Property {#2081} "navigation_parameters" => Pimcore\Model\Property {#2080} "navigation_relation" => Pimcore\Model\Property {#2079} "navigation_tabindex" => Pimcore\Model\Property {#2078} "navigation_target" => Pimcore\Model\Property {#2077} "navigation_title" => Pimcore\Model\Property {#2076} "sidebar" => Pimcore\Model\Property {#2075} ] : [] : [] : [] : [] : null : 16 : 1 : "document" : null : "" : "internal" : "/" : null } |
Request Headers
Header | Value |
---|---|
accept | "*/*" |
accept-encoding | "gzip, br, zstd, deflate" |
cache-control | "max-age=0" |
connection | "keep-alive" |
cookie | "PHPSESSID=el7npa2oktos90fv3j68ls6i14; ecommerceframework_trackingcode_flashmessagelistener=1; _pc_tss=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTQ5NDQ0NjYuODAwMjE1LCJwdGciOnsiX20iOjEsIl9jIjoxNzU0OTQ0NDY1LCJfdSI6MTc1NDk0NDQ2Niwidmk6c3J1IjpbN119LCJleHAiOjE3NTQ5NDYyNjZ9.0oQUNsW5qanEmXqYl04GQ4QWsc9XCMHNP4PnxX0iJ10; _pc_tvs=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTQ5NDQ0NjYuODAwMzQ3LCJwdGciOnsiY21mOnNnIjp7Ijg2MCI6MX0sIl9jIjoxNzU0OTQ0NDY1LCJfdSI6MTc1NDk0NDQ2NX0sImV4cCI6MTc4NjQ4MDQ2Nn0.3gP0QZcGEpbHtSb29TK9m3yfxTSa9jFUGAzB09rrHAc; sf_redirect=%7B%22token%22%3A%220c93e8%22%2C%22route%22%3A%22shop-add-to-cart%22%2C%22method%22%3A%22GET%22%2C%22controller%22%3A%7B%22class%22%3A%22App%5C%5CController%5C%5CCartController%22%2C%22method%22%3A%22addToCartAction%22%2C%22file%22%3A%22%5C%2Fvar%5C%2Fwww%5C%2Fhtml%5C%2Fsiteone%5C%2Fsrc%5C%2FController%5C%2FCartController.php%22%2C%22line%22%3A64%7D%2C%22status_code%22%3A302%2C%22status_text%22%3A%22Found%22%7D" |
host | "ec2-52-70-21-189.compute-1.amazonaws.com" |
user-agent | "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" |
via | "1.1 squid-proxy-5b5d847c96-hm9tx (squid/6.10)" |
x-forwarded-for | "10.1.185.133" |
x-php-ob-level | "1" |
Request Content
Request content not available (it was retrieved as a resource).
Response
Response Headers
Header | Value |
---|---|
cache-control | "private, must-revalidate" |
content-language | "en" |
content-type | "text/html; charset=UTF-8" |
date | "Mon, 11 Aug 2025 20:34:27 GMT" |
expires | "Tue, 01 Jan 1980 00:00:00 GMT" |
location | "/en/cart" |
pragma | "no-cache" |
set-cookie | [ "ecommerceframework_trackingcode_flashmessagelistener=1; path=/; httponly; samesite=lax" "_pc_tss=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTQ5NDQ0NjcuMzIwNTQyLCJwdGciOnsiX20iOjEsIl9jIjoxNzU0OTQ0NDY1LCJfdSI6MTc1NDk0NDQ2Nywidmk6c3J1IjpbN119LCJleHAiOjE3NTQ5NDYyNjd9.FIb0lmoY6joSi2WA4uTZ_TB-8mTCuuaF5C2_rqu5HLA; expires=Mon, 11-Aug-2025 21:04:27 GMT; Max-Age=1800; path=/; httponly; samesite=lax" "_pc_tvs=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTQ5NDQ0NjcuMzIwNzMyLCJwdGciOnsiY21mOnNnIjp7Ijg2MCI6MX0sIl9jIjoxNzU0OTQ0NDY1LCJfdSI6MTc1NDk0NDQ2NX0sImV4cCI6MTc4NjQ4MDQ2N30.D3RwZpwyDjmR4uXnQ1j58c8nc8vLRk9ZGyJKR89bTw8; expires=Tue, 11-Aug-2026 20:34:27 GMT; Max-Age=31536000; path=/; httponly; samesite=lax" ] |
x-debug-token | "36210b" |
x-pimcore-output-cache-disable-reason | "Tracking Codes Passed" |
x-powered-by | "pimcore" |
Cookies
Request Cookies
Key | Value |
---|---|
PHPSESSID | "el7npa2oktos90fv3j68ls6i14" |
_pc_tss | "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTQ5NDQ0NjYuODAwMjE1LCJwdGciOnsiX20iOjEsIl9jIjoxNzU0OTQ0NDY1LCJfdSI6MTc1NDk0NDQ2Niwidmk6c3J1IjpbN119LCJleHAiOjE3NTQ5NDYyNjZ9.0oQUNsW5qanEmXqYl04GQ4QWsc9XCMHNP4PnxX0iJ10" |
_pc_tvs | "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTQ5NDQ0NjYuODAwMzQ3LCJwdGciOnsiY21mOnNnIjp7Ijg2MCI6MX0sIl9jIjoxNzU0OTQ0NDY1LCJfdSI6MTc1NDk0NDQ2NX0sImV4cCI6MTc4NjQ4MDQ2Nn0.3gP0QZcGEpbHtSb29TK9m3yfxTSa9jFUGAzB09rrHAc" |
ecommerceframework_trackingcode_flashmessagelistener | "1" |
sf_redirect | "{"token":"0c93e8","route":"shop-add-to-cart","method":"GET","controller":{"class":"App\\Controller\\CartController","method":"addToCartAction","file":"\/var\/www\/html\/siteone\/src\/Controller\/CartController.php","line":64},"status_code":302,"status_text":"Found"}" |
Response Cookies
Key | Value |
---|---|
_pc_tss | Symfony\Component\HttpFoundation\Cookie {#4094 #name: "_pc_tss" #value: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTQ5NDQ0NjcuMzIwNTQyLCJwdGciOnsiX20iOjEsIl9jIjoxNzU0OTQ0NDY1LCJfdSI6MTc1NDk0NDQ2Nywidmk6c3J1IjpbN119LCJleHAiOjE3NTQ5NDYyNjd9.FIb0lmoY6joSi2WA4uTZ_TB-8mTCuuaF5C2_rqu5HLA" #domain: null #expire: 1754946267 #path: "/" #secure: false #httpOnly: true -raw: false -sameSite: "lax" -secureDefault: false } |
_pc_tvs | Symfony\Component\HttpFoundation\Cookie {#4106 #name: "_pc_tvs" #value: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTQ5NDQ0NjcuMzIwNzMyLCJwdGciOnsiY21mOnNnIjp7Ijg2MCI6MX0sIl9jIjoxNzU0OTQ0NDY1LCJfdSI6MTc1NDk0NDQ2NX0sImV4cCI6MTc4NjQ4MDQ2N30.D3RwZpwyDjmR4uXnQ1j58c8nc8vLRk9ZGyJKR89bTw8" #domain: null #expire: 1786480467 #path: "/" #secure: false #httpOnly: true -raw: false -sameSite: "lax" -secureDefault: false } |
ecommerceframework_trackingcode_flashmessagelistener | Symfony\Component\HttpFoundation\Cookie {#4115 #name: "ecommerceframework_trackingcode_flashmessagelistener" #value: "1" #domain: null #expire: 0 #path: "/" #secure: null #httpOnly: true -raw: false -sameSite: "lax" -secureDefault: false } |
Session
Session Metadata
Key | Value |
---|---|
Created | "Mon, 11 Aug 25 20:34:25 +0000" |
Last used | "Mon, 11 Aug 25 20:34:27 +0000" |
Lifetime | 0 |
Session Attributes
No session attributes
Session Usage
0
Usages
Stateless check enabled
Session not used.
Flashes
Flashes
Key | Value |
---|---|
ecommerceframework_trackingcode_flashmessagelistener | [ "Pimcore\Bundle\EcommerceFrameworkBundle\Tracking\Tracker\Analytics\EnhancedEcommerce" => [ "ga('require', 'ec');\n" """ ga('ec:addProduct', {"id":"2554395139","name":"Alfa Romeo Gulietta Sprint Speciale Head lamps ","category":"Head lamps","price":"1495.9500","quantity":1});\n ga('ec:setAction', 'add');\n """ "ga('require', 'ec');\n" """ ga('ec:addProduct', {"id":"1388028567","name":"Aston Martin DB5 Head lamps ","category":"Head lamps","price":"395.9500","quantity":1});\n ga('ec:setAction', 'add');\n """ ] ] |
Server Parameters
Server Parameters
Defined in .env
Key | Value |
---|---|
APP_ENV | "dev" |
MAILER_DSN | "smtp://pimcore.pgs@gmail.com:aDMIN@1234@smtp.gmail.com:465" |
Defined as regular env variables
Key | Value |
---|---|
APP_DEBUG | "1" |
CONTEXT_DOCUMENT_ROOT | "/var/www/html/siteone/public" |
CONTEXT_PREFIX | "" |
DOCUMENT_ROOT | "/var/www/html/siteone/public" |
GATEWAY_INTERFACE | "CGI/1.1" |
HTTP_ACCEPT | "*/*" |
HTTP_ACCEPT_ENCODING | "gzip, br, zstd, deflate" |
HTTP_CACHE_CONTROL | "max-age=0" |
HTTP_CONNECTION | "keep-alive" |
HTTP_COOKIE | "PHPSESSID=el7npa2oktos90fv3j68ls6i14; ecommerceframework_trackingcode_flashmessagelistener=1; _pc_tss=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTQ5NDQ0NjYuODAwMjE1LCJwdGciOnsiX20iOjEsIl9jIjoxNzU0OTQ0NDY1LCJfdSI6MTc1NDk0NDQ2Niwidmk6c3J1IjpbN119LCJleHAiOjE3NTQ5NDYyNjZ9.0oQUNsW5qanEmXqYl04GQ4QWsc9XCMHNP4PnxX0iJ10; _pc_tvs=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTQ5NDQ0NjYuODAwMzQ3LCJwdGciOnsiY21mOnNnIjp7Ijg2MCI6MX0sIl9jIjoxNzU0OTQ0NDY1LCJfdSI6MTc1NDk0NDQ2NX0sImV4cCI6MTc4NjQ4MDQ2Nn0.3gP0QZcGEpbHtSb29TK9m3yfxTSa9jFUGAzB09rrHAc; sf_redirect=%7B%22token%22%3A%220c93e8%22%2C%22route%22%3A%22shop-add-to-cart%22%2C%22method%22%3A%22GET%22%2C%22controller%22%3A%7B%22class%22%3A%22App%5C%5CController%5C%5CCartController%22%2C%22method%22%3A%22addToCartAction%22%2C%22file%22%3A%22%5C%2Fvar%5C%2Fwww%5C%2Fhtml%5C%2Fsiteone%5C%2Fsrc%5C%2FController%5C%2FCartController.php%22%2C%22line%22%3A64%7D%2C%22status_code%22%3A302%2C%22status_text%22%3A%22Found%22%7D" |
HTTP_HOST | "ec2-52-70-21-189.compute-1.amazonaws.com" |
HTTP_USER_AGENT | "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" |
HTTP_VIA | "1.1 squid-proxy-5b5d847c96-hm9tx (squid/6.10)" |
HTTP_X_FORWARDED_FOR | "10.1.185.133" |
PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" |
PHP_SELF | "/index.php" |
QUERY_STRING | "id=401" |
REDIRECT_QUERY_STRING | "id=401" |
REDIRECT_SCRIPT_URI | "http://ec2-52-70-21-189.compute-1.amazonaws.com/en/cart/add-to-cart" |
REDIRECT_SCRIPT_URL | "/en/cart/add-to-cart" |
REDIRECT_STATUS | "200" |
REDIRECT_URL | "/en/cart/add-to-cart" |
REMOTE_ADDR | "216.73.216.132" |
REMOTE_PORT | "18813" |
REQUEST_METHOD | "GET" |
REQUEST_SCHEME | "http" |
REQUEST_TIME | 1754944467 |
REQUEST_TIME_FLOAT | 1754944467.0478 |
REQUEST_URI | "/en/cart/add-to-cart?id=401" |
SCRIPT_FILENAME | "/var/www/html/siteone/public/index.php" |
SCRIPT_NAME | "/index.php" |
SCRIPT_URI | "http://ec2-52-70-21-189.compute-1.amazonaws.com/en/cart/add-to-cart" |
SCRIPT_URL | "/en/cart/add-to-cart" |
SERVER_ADDR | "172.31.37.98" |
SERVER_ADMIN | "webmaster@example.com" |
SERVER_NAME | "ec2-52-70-21-189.compute-1.amazonaws.com" |
SERVER_PORT | "80" |
SERVER_PROTOCOL | "HTTP/1.1" |
SERVER_SIGNATURE | "<address>Apache/2.4.41 (Ubuntu) Server at ec2-52-70-21-189.compute-1.amazonaws.com Port 80</address>\n" |
SERVER_SOFTWARE | "Apache/2.4.41 (Ubuntu)" |
SYMFONY_DOTENV_VARS | "APP_ENV,MAILER_DSN" |