* * 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:----PSi+xsrxRQuZeDfHq8v8x8zz6lr+jZ90V6fPIVTLwFSRBeFLov2/tKKwTliFsTUXoYRg9WqV+GZyi13MWcDZX5+ypTVb7az7FobDzTlRT6PSrrtHDXsTW/UoTytzgHZeIzbbTiBjNdOVklh0ZO49S/tHL7VTf6fuotDyUnrku/hKjOE7Po2lK0xIlDBazPJo7O8ndvGvqWbkaWaVfYvYQD3ctkTIdcDAmuk17C5Id5rtEy8o8wi72Th7Od9mYQl2Acjc7OSY7NdehwhpzbPxKShljk+/Tthnzj4VbcHW52EZxn8AyvRtENPfuh4DgKZ9bJkSyOrFPgpm1lAX+/7lG+yPGg5JCe/7l4ST4LC7CSj8FgGZWYsAGEOGE49C4cuRlz91xwK6nb1iLxFr+lN4GozF8IpofVPWVWx8e9+dTOI+CWMnglMhFLqUZCLGEEvAS4wHKTyEdBIpcyak9fFkwWRE3FYJ8nEq5UgtBO5oGJ9xoSy4TQqtcwQkIds/24odZxujy40lrf11oQpO5hSQdebt10Nsa0B/5NfF7fLtFxrhumwejBSwIxHvtZsHUi9Qtr6/zo81YVNR2Bu2Csdds+xlhFVPlhO9jLerLg6IYWauGs2zkRw/XAVt93ZInzGaV1AiCxlZay8mNLt/39LDRBodnEacjHpNz00lCtOATNQ=----ATTACHMENT:----NTc5MDIzNDA1OTQ0MDMxMCA0NTUzMzA0MDEyMTQzMTAzIDk2OTkxNTQyNjc5OTk5MTk=