original_string: public function onKernelTerminate(PostResponseEvent $event)
      {
          if (!$event->getRequest()->hasSession()) {
              return;
          }
  
          $session = $event->getRequest()->getSession();
  
          $this->registry->refreshLastUsed($session->getId(), $session->getMetadataBag()->getLastUsed());
      }
code: public function onKernelTerminate(PostResponseEvent $event)
      {
          if (!$event->getRequest()->hasSession()) {
              return;
          }
  
          $session = $event->getRequest()->getSession();
  
          $this->registry->refreshLastUsed($session->getId(), $session->getMetadataBag()->getLastUsed());
      }
code_tokens: public function onKernelTerminate ( PostResponseEvent $ event ) { if ( ! $ event -> getRequest ( ) -> hasSession ( ) ) { return ; } $ session = $ event -> getRequest ( ) -> getSession ( ) ; $ this -> registry -> refreshLastUsed ( $ session -> getId ( ) , $ session -> getMetadataBag ( ) -> getLastUsed ( ) ) ; }
docstring: Refresh the last used timestamp for the given session if registered.
  
  @param PostResponseEvent $event
docstring_tokens: Refresh the last used timestamp for the given session if registered .