// example.com/src/Calendar/Controller/LeapYearController.phpnamespaceCalendar\Controller;useSymfony\Component\HttpFoundation\Request;useSymfony\Component\HttpFoundation\Response;useCalendar\Model\LeapYear;classLeapYearController{publicfunctionindexAction(Request$request,$year){$leapyear=newLeapYear();if($leapyear->isLeapYear($year)){returnnewResponse('Yep, this is a leap year!');}returnnewResponse('Nope, this is not a leap year.');}}