use constants for url generator

available since symfony 2.3 which is also the requirement of silex master