Made it so that Twist middleware is compatible with Symfony