Issue #3029199 by Gábor Hojtsy, alexpott: [symfony 5] Calling "Symfony\Component\HttpFoundation\Request::getSession()" when no session has been set is deprecated since Symfony 4.1