public function onKernelRequest(GetResponseEvent $e)
 {
     // Only run on the Master request
     if (HttpKernelInterface::MASTER_REQUEST !== $e->getRequestType()) {
         return;
     }
     // Get the request and decrypt the requested cookies
     $request = $e->getRequest();
     foreach ($this->cookieNames as $name) {
         if (!$request->cookies->has($name)) {
             continue;
         }
         $value = $this->encrypter->decrypt($request->cookies->get($name));
         $request->cookies->set($name, $value);
     }
 }
 function let(EncryptionInterface $encryption)
 {
     $encryption->encrypt('test')->willReturn('dGVzdA==');
     $encryption->decrypt('dGVzdA==')->willReturn('test');
     $this->beConstructedWith(['session'], $encryption);
 }