AngularJS userAgent gatherer with Symfony2