Symfony: Page Navigation Links

Pagination helper in the code snippets section of Symfony’s website. The code is modified to include <ul> and <li> tags and to correctly parse uri when passed as routing rule: