requestStack->getCurrentRequest()->cookies->all(); } else { return $this->requestStack->getCurrentRequest()->cookies->get($cookie); } } /** * {@inheritdoc} */ public function getCacheableMetadata($cookie = NULL) { return new CacheableMetadata(); } }