Adding 'take' function to Symfony session bridge