Warning: You are browsing the documentation for Symfony 3.4, which is no longer maintained.
Read the updated version of this page for Symfony 6.0 (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".