Warning: You are browsing the documentation for Symfony 2.7, which is no longer maintained.
Read the updated version of this page for Symfony 5.3 (the current stable version).
As of Symfony 2.5, more possibilities to restrict firewalls have been added.
You can read everything about all the possibilities (including
in "How to Restrict Firewalls to a Specific Request".