Fork me on GitHub


In this episode we’ll use the Symfony2 Component Routing, which will take care of mapping the URLs to the file paths. One of the advantages of the Routing component is the ability to create dynamical paths. To convert something like /hello?name=Andrey into /name/Andrey we’ll take advantage of RouteCollection, URLMatcher and RequestConext – the classes bundled with the Routing component.