symfony/symfony-docs — pull request #1776 by acasademont (2012-10-02 14:38:21+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 as of 2.1