Integrate the DutyCalculator API in Symfony2