ProductController :: viewProduct

Request

GET Parameters

Key Value
url
"product/nature-zen/barres-proteinees-bio,-chocolat/4378/"

POST Parameters

No POST parameters

Uploaded Files

No files were uploaded

Request Attributes

Key Value
_controller
"App\Controller\ProductController::viewProduct"
_firewall_context
"security.firewall.map.context.main"
_locale
"en"
_redirected
true
_route
"viewProduct"
_route_params
[
  "_locale" => "en"
  "producerUrl" => "nature-zen"
  "productName" => "barres-proteinees-bio%2C-chocolat"
  "id" => "4378"
]
_template
Sensio\Bundle\FrameworkExtraBundle\Configuration\Template {#933
  #template: "frontend/product.html.twig"
  -vars: []
  -streamable: false
  -owner: [
    App\Controller\ProductController {#224
      -entityMana: Doctrine\ORM\EntityManager {#319 …}
      -productServ: App\Service\ProductService {#153 …}
      -userServ: App\Service\UserService {#150 …}
      -companyServ: App\Service\CompanyService {#835 …}
      -request: null
      #container: Symfony\Component\DependencyInjection\Argument\ServiceLocator {#839 …}
    }
    "viewProduct"
  ]
}
id
"4378"
producerUrl
"nature-zen"
product
App\Entity\Product {#1113
  #em: Doctrine\ORM\EntityManager {#319 …}
  #userServ: App\Service\UserService {#150 …}
  -urlName: null
  -id: 4378
  -origName: "Barres protéinées bio, Chocolat"
  -origBrandName: null
  -qtyLeft: 0
  -unitAmount: 60.0
  -unit: 2
  -available: true
  -origDescription: "<p>Les barres prot&eacute;in&eacute;es Nature Zen&hellip; Parmi les meilleures&hellip; Une dose d&rsquo;&eacute;nergie soutenante des plus saines que vous puissiez donner &agrave; votre corps !</p><p>Nature Zen offre maintenant une nouvelle gamme de produits de haute qualit&eacute; : des barres d&eacute;licieuses et bien pens&eacute;es. Elles sont uniques dans leur ratio &eacute;quilibr&eacute; de prot&eacute;ines, de mati&egrave;res grasses et de sucre (sans l&rsquo;utilisation d&rsquo;&eacute;dulcorant chimique ou de sucre alcoolis&eacute;).</p><p>Cet &eacute;quilibre-cl&eacute; leur donne une digestibilit&eacute; optimale : les barres Nature Zen fournissent de l&rsquo;&eacute;nergie, sans la lourdeur, la fatigue et les ballonnements qui sont souvent associ&eacute;s &agrave; la consommation de barres prot&eacute;in&eacute;es. Ces barres sont tout &agrave; fait uniques !</p><p>D&eacute;couvrez leur texture onctueuse, &agrave; mi-chemin entre le caramel et le nougat&hellip; Les barres prot&eacute;in&eacute;es Nature Zen sont aromatis&eacute;es avec de v&eacute;ritables extraits 100% naturels de fruits et d&rsquo;&eacute;pices, sans aucun parfum chimique. Une douceur saine et &eacute;nergisante qui compl&egrave;te parfaitement un repas ou qui est en soi une collation exceptionnellement nourrissante !</p>"
  -categories: Proxies\__CG__\App\Entity\Category {#1175 …}
  -conservation: Proxies\__CG__\App\Entity\Conservation {#1154 …}
  -Origin: "Québec/Canada"
  -bestBefore: null
  -creationDate: DateTime @1589860800 {#1110
    date: 2020-05-19 00:00:00.0 America/New_York (-04:00)
  }
  -nutritionFact: null
  -newProduct: true
  -images: Doctrine\ORM\PersistentCollection {#1155 …}
  -mainImage: Proxies\__CG__\App\Entity\Image {#1176 …}
  -tags: Doctrine\ORM\PersistentCollection {#1133 …}
  -ingredients: Doctrine\ORM\PersistentCollection {#1147 …}
  -storages: Doctrine\ORM\PersistentCollection {#1188 …}
  -pricings: Doctrine\ORM\PersistentCollection {#1206 …}
  -certifications: Doctrine\ORM\PersistentCollection {#1219 …}
  -company: Proxies\__CG__\App\Entity\Company {#1380 …}
  -taxable: true
  -maturinUpc: "055843407493"
  -codeUPC: null
  -code1: null
  -code2: null
  -code3: null
  -codeBox: null
  -alimentsDuQuebec: true
  -deliveryLocations: Doctrine\ORM\PersistentCollection {#1368 …}
  -minimumInStorage: 1
  -deliveryMethods: Doctrine\ORM\PersistentCollection {#1345 …}
  -limitedQuantity: false
  -alimentsDuQuebecCertification: 3
  -DeliveryType: 0
  -DeliveryPickup: false
  -draft: false
  -deliveryMail: true
  -locations: Doctrine\ORM\PersistentCollection {#1319 …}
  -region: Proxies\__CG__\App\Entity\Region {#1290 …}
  -advices: null
  -recipes: null
  -userViewed: Doctrine\ORM\PersistentCollection {#1301 …}
  -inCarts: Doctrine\ORM\PersistentCollection {#1244 …}
  -solexId: "36264"
  -replenishmentItems: Doctrine\ORM\PersistentCollection {#1261 …}
  -favorites: Doctrine\ORM\PersistentCollection {#1273 …}
  -listOfIngredients: "<p>Fibres pr&eacute;biotiques de tapioca*, prot&eacute;ine de pois*, prot&eacute;ine de riz*, nectar de coco*, chocolat noir* (sucre de canne*, chocolat non sucr&eacute;*, beurre de cacao*, vanille*), graines de tournesol*, perles croustillantes prot&eacute;in&eacute;es* (prot&eacute;ine de pois*, farine de riz*), huile de noix de coco*, sirop de riz*, jus de raisin concentr&eacute;*, cacao*, chocolat non sucr&eacute;*, eau, huile de tournesol*, lucuma*, p&acirc;te de vanille*, extrait de cacao*, pectine, sel de mer. *Biologique. Certifi&eacute; biologique par Ecocert Canada.</p>"
  -qtyReadyToShip: 5
  -expirationDate: DateTime @1599364800 {#1111
    date: 2020-09-06 00:00:00.0 America/New_York (-04:00)
  }
  -isConsigned: false
  -consignedCost: 0.0
  -nutritionFactImage: null
  -isFragile: false
  -qtyPerUnit: 12
  -validatedByDistributor: true
  -deliveryNote: null
  -isJustInTime: false
  -reminderLowQuantitySent: false
  -hasMultipleProducts: false
  -hasFreeMaturinShipping: false
  -deal: null
  -productsInBundle: Doctrine\ORM\PersistentCollection {#1275 …}
  -badges: Doctrine\ORM\PersistentCollection {#1397 …}
  -diets: Doctrine\ORM\PersistentCollection {#1410 …}
  -discountPricings: Doctrine\ORM\PersistentCollection {#1412 …}
  -subCategory: Proxies\__CG__\App\Entity\Category {#1414 …}
  -complementedByGroups: Doctrine\ORM\PersistentCollection {#1427 …}
  -complementaryGroups: Doctrine\ORM\PersistentCollection {#1429 …}
  -actionWhenExpired: 1
  -isSubscribable: null
  -subscriptions: Doctrine\ORM\PersistentCollection {#1449 …}
  -isBoxOfProducts: false
  -productsInBox: Doctrine\ORM\PersistentCollection {#1463 …}
  -isOnlySubscribable: null
  -justInTimeDeliveryDate: null
  -freeMaturinShippingIfLowerThen: null
  -isOnlySubscribableToType: null
  -targetOfReplacementScripts: Doctrine\ORM\PersistentCollection {#1477 …}
  -quantityWarehouse: 5
  -quantityWarehouseReserved: 0
  -quantityOnHold: 0
  -parentProductId: null
  -feeWarehousePackingPerUnit: 2.2
  -feeWarehouseHandlingPerUnit: null
  -isDisplayedInAssociationOnly: false
  -isHri: false
  -puroExclusion: false
  -containsAlcohol: false
  -isConsumer: true
  -productColaborPrice: null
  -isPrixLaureat: false
  -cantUseCoupon: false
  -corporative: null
  -seasonality: null
  -seasonalityStart: null
  -seasonalityEnd: null
  -quantityMaxProd: null
  -productDelete: false
  -orderFrequency: 0
  -portionForMeal: 0
}
productName
"barres-proteinees-bio%2C-chocolat"

Request Headers

Header Value
accept
"*/*"
accept-encoding
"gzip, br, deflate"
cookie
"PHPSESSID=28bc2rl828obb11lan6ntdj2qj; sf_redirect=%7B%22token%22%3A%22000584%22%2C%22route%22%3A%22viewProduct%22%2C%22method%22%3A%22GET%22%2C%22controller%22%3A%7B%22class%22%3A%22App%5C%5CController%5C%5CProductController%22%2C%22method%22%3A%22viewProduct%22%2C%22file%22%3A%22%5C%2Fvar%5C%2Fwww%5C%2Fhtml%5C%2FMarkego%5C%2Fsrc%5C%2FController%5C%2FProductController.php%22%2C%22line%22%3A612%7D%2C%22status_code%22%3A302%2C%22status_text%22%3A%22Found%22%7D"
from
"gptbot(at)openai.com"
host
"staging.maturin.ca"
referer
"https://staging.maturin.ca/category/vege?id=6499&order=desc&page=2&producerUrl=vg-gourmet&productName=creation-au-tofu-coco-thailandais&sorting=popularity&url=product%2Fvg-gourmet%2Fcreation-au-tofu-coco-thailandais%2F6499%2F"
user-agent
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.4; +https://openai.com/gptbot)"
x-openai-host-hash
"92317407"
x-php-ob-level
"1"

Request Content

Request content not available (it was retrieved as a resource).

Response

Response Headers

Header Value
cache-control
"no-cache, private"
content-type
"text/html; charset=UTF-8"
date
"Sun, 16 Aug 2026 21:56:23 GMT"
location
"/groupe/marchepublicrimouski/product/nature-zen/barres-proteinees-bio%252C-chocolat/4378/"
x-debug-token
"6c7c15"

Cookies

Request Cookies

Key Value
PHPSESSID
"28bc2rl828obb11lan6ntdj2qj"
sf_redirect
"{"token":"000584","route":"viewProduct","method":"GET","controller":{"class":"App\\Controller\\ProductController","method":"viewProduct","file":"\/var\/www\/html\/Markego\/src\/Controller\/ProductController.php","line":612},"status_code":302,"status_text":"Found"}"

Response Cookies

No response cookies

Session

Session Metadata

Key Value
Created
"Sun, 16 Aug 26 17:52:40 -0400"
Last used
"Sun, 16 Aug 26 17:56:23 -0400"
Lifetime
"31536000"

Session Attributes

Attribute Value
cartId
19123557
favorites
Doctrine\Common\Collections\ArrayCollection {#236
  -elements: []
}
showThisAssociationIdOnly-customBrowsing
11

Flashes

Flashes

Key Value
error
[
  "The product you tried to see is not allowed in Marché public Rimouski"
  "The product you tried to see is not allowed in Marché public Rimouski"
  "The product you tried to see is not allowed in Marché public Rimouski"
  "The product you tried to see is not allowed in Marché public Rimouski"
  "The product you tried to see is not allowed in Marché public Rimouski"
  "The product you tried to see is not allowed in Marché public Rimouski"
  "The product you tried to see is not allowed in Marché public Rimouski"
  "The product you tried to see is not allowed in Marché public Rimouski"
  "The product you tried to see is not allowed in Marché public Rimouski"
  "The product you tried to see is not allowed in Marché public Rimouski"
]

Server Parameters

Server Parameters

Defined in .env

Key Value
ADMIN_TO_SEND_ADDRESS
"maxime@maturin.ca"
APP_DEBUG
"1"
APP_ENV
"dev"
APP_SECRET
"ece17b137845c6af87737a7b429bf83e"
DATABASE_URL
"mysql://dev:adf98hj248r7hdasfSDF23r@127.0.0.1:3306/omelodev"
DEV_TO_MAIL_ADDRESS
"maxime@maturin.ca"
ELASTICSEARCH_HOST
"127.0.0.1"
ELASTICSEARCH_PORT
"9200"
ENABLE_TWIG_CACHE
"true"
MAILER_FROM
"reply-message@maturin.ca"
MAILER_URL
"smtp://mail.maturin.ca:587?encryption=&auth_mode=&username=maxime@maturin.ca&password=y3TE3dK7"
SOLEXIS_API_HOST
"https://maturin-dev.solutionextreme.com/api/"
SOLEXIS_NEW_API_HOST
"https://maturin-dev.solutionextreme.com/api/"
STRIPE_API_KEY
"sk_test_cLLpvDdtubdfD3HTPOK3uEoC"
STRIPE_API_PKEY
"pk_test_Hk3TQ3qfUi6YJ5ZTc2jdQB3X"

Defined as regular env variables

Key Value
CONTEXT_DOCUMENT_ROOT
"/var/www/html/Markego/public"
CONTEXT_PREFIX
""
DOCUMENT_ROOT
"/var/www/html/Markego/public"
GATEWAY_INTERFACE
"CGI/1.1"
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip, br, deflate"
HTTP_COOKIE
"PHPSESSID=28bc2rl828obb11lan6ntdj2qj; sf_redirect=%7B%22token%22%3A%22000584%22%2C%22route%22%3A%22viewProduct%22%2C%22method%22%3A%22GET%22%2C%22controller%22%3A%7B%22class%22%3A%22App%5C%5CController%5C%5CProductController%22%2C%22method%22%3A%22viewProduct%22%2C%22file%22%3A%22%5C%2Fvar%5C%2Fwww%5C%2Fhtml%5C%2FMarkego%5C%2Fsrc%5C%2FController%5C%2FProductController.php%22%2C%22line%22%3A612%7D%2C%22status_code%22%3A302%2C%22status_text%22%3A%22Found%22%7D"
HTTP_FROM
"gptbot(at)openai.com"
HTTP_HOST
"staging.maturin.ca"
HTTP_REFERER
"https://staging.maturin.ca/category/vege?id=6499&order=desc&page=2&producerUrl=vg-gourmet&productName=creation-au-tofu-coco-thailandais&sorting=popularity&url=product%2Fvg-gourmet%2Fcreation-au-tofu-coco-thailandais%2F6499%2F"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.4; +https://openai.com/gptbot)"
HTTP_X_OPENAI_HOST_HASH
"92317407"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
PHP_SELF
"/index.php"
QUERY_STRING
"url=product/nature-zen/barres-proteinees-bio%2C-chocolat/4378/"
REDIRECT_HTTPS
"on"
REDIRECT_QUERY_STRING
"url=product/nature-zen/barres-proteinees-bio%2C-chocolat/4378/"
REDIRECT_SSL_TLS_SNI
"staging.maturin.ca"
REDIRECT_STATUS
"200"
REDIRECT_URL
"/product/nature-zen/barres-proteinees-bio%2C-chocolat/4378/"
REMOTE_ADDR
"74.7.227.131"
REMOTE_PORT
"59934"
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"https"
REQUEST_TIME
1786917383
REQUEST_TIME_FLOAT
1786917383.73
REQUEST_URI
"/product/nature-zen/barres-proteinees-bio%252C-chocolat/4378/"
SCRIPT_FILENAME
"/var/www/html/Markego/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"51.79.50.9"
SERVER_ADMIN
"webmaster@localhost"
SERVER_NAME
"staging.maturin.ca"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SIGNATURE
"<address>Apache/2.4.41 (Ubuntu) Server at staging.maturin.ca Port 443</address>\n"
SERVER_SOFTWARE
"Apache/2.4.41 (Ubuntu)"
SSL_TLS_SNI
"staging.maturin.ca"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_DEBUG,APP_SECRET,DATABASE_URL,MAILER_URL,MAILER_FROM,DEV_TO_MAIL_ADDRESS,ADMIN_TO_SEND_ADDRESS,ELASTICSEARCH_HOST,ELASTICSEARCH_PORT,STRIPE_API_KEY,STRIPE_API_PKEY,SOLEXIS_API_HOST,SOLEXIS_NEW_API_HOST,ENABLE_TWIG_CACHE"