This is not how you use Symfony\Component\HttpFoundation\Session\Session. Does this work?