Web Powered

Symfony 1.x - Route loading and evaluating order

Routes are loaded and evaluated in this order:

  1. $routing->prepend(…) in Plugin
  2. $routing->prepend(…) in Application
  3. routing.yml in Plugin
  4. routing.yml in Application
  5. $routing->append(…) in Application
  6. $routing->append(…) in Plugin

If 2 routes match the same URL, the first one following this list will be chosen.

Note: connect() and append() are the same function