URL shortening service in Symfony2