Q. In Symfony, what is middleware primarily used for?