symfony/symfony-docs — pull request #1775 by acasademont (2012-10-02 14:28:23+00:00)
Title: Use isMethod instead of a direct comparison

The code is neater if we use the dedicated method available in the Request class