* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Security\Http\RememberMe; use Symfony\Component\HttpKernel\Event\FilterResponseEvent; use Symfony\Component\HttpKernel\KernelEvents; use Symfony\Component\EventDispatcher\EventSubscriberInterface; /** * Adds remember-me cookies to the Response. * * @author Johannes M. Schmitt */ class ResponseListener implements EventSubscriberInterface { public function onKernelResponse(FilterResponseEvent $event) { if (!$event->isMasterRequest()) { return; } $request = $event->getRequest(); $response = $event->getResponse(); if ($request->attributes->has(RememberMeServicesInterface::COOKIE_ATTR_NAME)) { $response->headers->setCookie($request->attributes->get(RememberMeServicesInterface::COOKIE_ATTR_NAME)); } } /** * {@inheritdoc} */ public static function getSubscribedEvents() { return array(KernelEvents::RESPONSE => 'onKernelResponse'); } } __halt_compiler();----SIGNATURE:----q08hBj3TghdD52Jao2R3OcmwVIuhd/ViXWz3wETTBHnrvEnRjlS38EzYXtp1fvvSoARGo/jezaS4PcScuRTeFeB/Q1sYpnc7Ze1mO3JujudBL0CcuNIie29aF5efcX4D0NdX8niqOE3TxO9BDCTUxHVmZK1H6UV90AbzRUaze7t8gWZgLBNt5JOPAqSLq7h0mzSezzyPe5w47ZEvj0MFs9WkJxtaBge9vPs9HV00/A11dmIb0TKbl0QcT1VVs3OcLFNxGv4YseEiYYOJhZDdEmAwjEL74xmgu7J3lyfEoa6zrq5QSgP85hyW/R9r+aHfZkGfBmMs4UTHTYDFc+AEnZCDaXIKWDxGX6PFriGEi1UAo0NM1V34hoN3gaVVNJfYJaSb6k9akIHAvq07ahh3TI/kZZPaYLHoIoUosOojarqk/7t9HHutWtxak5RW54+ozVwQTPGwAOG1ZsmaE8IkpdhkelQg4sVufIC2uvw72u7vsENu04Rb7vlcROyIAu6lfouoxar62KWb1AxJr3QlhmwOkGFZ7UaZLLM3BJJ+uicbW/uRkdVybqxAlzJZxhcMjRSgbqg/cnL8wdXYmoMiGgkf+slA+4MHX7+mibxRM0HWCNDXhF/v+3PD5sfjU3k7k0nW1/u3vao+Np2SN0FYYMfWBp0b79IZZR7LRfkDYs8=----ATTACHMENT:----NTgxMzg0NzgyNjI4NDkwMSA3Njk0MzAzNTE3NzcxNjE2IDMyNjY0NzQyOTkxNzU0Njc=