* * 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:----RwstV68qApL/wXvo4t4ToTC3gXHPLILIsct+TSDWkjHawIYUNJ4jKKFeTR75pJ6GAPzy+2nacBC57Vikh32ZsC1kANbwWIjtF8hM5l9ZkPKhn4CypfKBNi56T3LgLrTA24QU2wJoZAEmRpsVVmp4kmUp0G61RHbUPndGmARjrGPOS/kPXe+dLy4YoeWrx0niPYHYHg96gj0dxck9OKXUYjtgMrlblai82gADfgwPuIt/n0KEuk5/BPMPXl9YGFkvA7cXUSJ6ZxnU8TpfI2SnMwVhxZN1H3sNe/ctyUMRPohoqX8XXa+b854bdPevWu7NtIf6LCXHYg5FCWJ2tB/FyjHLJgTE7A6CNxKDBti23zJKXp5eIZvMNhtfjGd3/YTrVLRqAYQyRLd2gwYOoNVH09H4jJ1Z0OFf2GBe/qbP6QrKxosdWhpknA5294ixcVvlpClqD0mZzWrmzgeog9X4BM34pDzRPrTHK5G1wwVAii5w/ST2Z78JArDkKHBDbSsHIWMfcy0S4Cj6R/H9Gja6cEiXPB4QNTvNy5TahyEqRSnb4NgylaIz22fUztTxVaLrvkVZ8cJ929A42Yg3rfF0cJLlCSVzDCBfq3FnE9EO38UMk1TBQHUqWX/iPJjls4txRZqDN4e8u4JfVo9D2XK1PSXSMcPCFF4AsUTkPnM2UNg=----ATTACHMENT:----MTc2NzcyNzIxNjIwOTc2NCA1MTUwOTk1MTAzODUwNzc0IDE1NTIxNzM2MDM1NDE0NjQ=