drupal-graphql / graphql

GraphQL integration for Drupal 9/10
288 stars 202 forks source link

Calling Request::getSession() without having a session is deprecated #1369

Closed pfrenssen closed 10 months ago

pfrenssen commented 10 months ago

Calling Symfony\Component\HttpFoundation\Request::getSession() without having a session is deprecated in Symfony 4 and throws an exception in Symfony 5 and later.

We are calling this method in SubRequestBuffer::createRequest(), so we need to address this deprecation.

This affects only the legacy GraphQL 3.x on Drupal 10.