diff --git a/src/Controller/DashboardController.php b/src/Controller/DashboardController.php index e93d322..dead06a 100644 --- a/src/Controller/DashboardController.php +++ b/src/Controller/DashboardController.php @@ -14,4 +14,6 @@ class DashboardController extends AbstractController { return $this->render('dashboard/index.html.twig'); } + + } diff --git a/src/Controller/EmployeeController.php b/src/Controller/EmployeeController.php new file mode 100644 index 0000000..36a4fdb --- /dev/null +++ b/src/Controller/EmployeeController.php @@ -0,0 +1,18 @@ +render('employee/index.html.twig', [ + 'controller_name' => 'EmployeeController', + ]); + } +} diff --git a/src/Service/RelationService.php b/src/Service/RelationService.php new file mode 100644 index 0000000..223b5df --- /dev/null +++ b/src/Service/RelationService.php @@ -0,0 +1,61 @@ +setEmployee($employee); + $assignment->setRide($ride); + $assignment->setStartHour($startHour); + $assignment->setEndHour($endHour); + } + + public function setEmployeeSkill(Skill $skill, Employee $employee ) + { + $employeeSkill = new EmployeeSkill(); + + $employeeSkill->setEmployee($employee); + $employeeSkill->setSkill($skill); + } + + public function setMissionCategory(Mission $mission, Category $category ) + { + $missionCategory = new MissionCategory(); + + $missionCategory->setMission($mission); + $missionCategory->setCategory($category); + } + + public function setRepresentation(Ride $ride, Employee $employee,int $count ,\DateTime $date ) + { + $representation = new Representation(); + + $representation->setRide($ride); + $representation->setEmployee($employee); + $representation->setCount($count); + $representation->setDate($date); + } + + public function setRequirement(Skill $skill, Mission $mission ) + { + $requirement = new Requirement(); + + $requirement->setSkill($skill); + $requirement->setMission($mission); + } +} diff --git a/templates/employee/index.html.twig b/templates/employee/index.html.twig new file mode 100644 index 0000000..3b5896e --- /dev/null +++ b/templates/employee/index.html.twig @@ -0,0 +1,20 @@ +{% extends 'base.html.twig' %} + +{% block title %}Hello EmployeeController!{% endblock %} + +{% block body %} + + +
/media/astiery/DEV/Boussarie/AP/HegreLand/src/Controller/EmployeeController.php
/media/astiery/DEV/Boussarie/AP/HegreLand/templates/employee/index.html.twig