php-runtime/runtime

Swoole runtime for Symfony - remember_me does not work.

maxkain opened this issue · 0 comments

With this runtime remember_me is not set. I changed few lines of method reflectSymfonyResponse of SymfonyHttpBridge from:

  foreach ($sfResponse->headers->all() as $name => $values) {
      foreach ((array) $values as $value) {
          $response->header((string) $name, $value);
      }
  }

to:

  foreach ($sfResponse->headers->all() as $name => $values) {
      $response->header((string) $name, $values);
  }

And it works now.