Use the Symfony session interface.
Use correct interface in tests.
Merge pull request #6313 from franzliedke/patch-13

[5.0] Use Symfony Session In Guard