Compare commits
No commits in common. "76b4d0562037e372834615ecf988d0b016fc287d" and "6dd655029263d6ba053763ae76c58a1f93486e87" have entirely different histories.
76b4d05620
...
6dd6550292
@ -14,6 +14,4 @@ class DashboardController extends AbstractController
|
||||
{
|
||||
return $this->render('dashboard/index.html.twig');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -1,18 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Attribute\Route;
|
||||
|
||||
class EmployeeController extends AbstractController
|
||||
{
|
||||
#[Route('/employee', name: 'app_employee')]
|
||||
public function index(): Response
|
||||
{
|
||||
return $this->render('employee/index.html.twig', [
|
||||
'controller_name' => 'EmployeeController',
|
||||
]);
|
||||
}
|
||||
}
|
@ -1,61 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Service;
|
||||
|
||||
|
||||
use App\Entity\Assignment;
|
||||
use App\Entity\Category;
|
||||
use App\Entity\Employee;
|
||||
use App\Entity\EmployeeSkill;
|
||||
use App\Entity\Mission;
|
||||
use App\Entity\MissionCategory;
|
||||
use App\Entity\Representation;
|
||||
use App\Entity\Requirement;
|
||||
use App\Entity\Ride;
|
||||
use App\Entity\Skill;
|
||||
|
||||
class RelationService {
|
||||
public function setAssignment(Ride $ride, Employee $employee, \DateTime $startHour, \DateTime $endHour )
|
||||
{
|
||||
$assignment = new Assignment();
|
||||
|
||||
$assignment->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);
|
||||
}
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Hello EmployeeController!{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<style>
|
||||
.example-wrapper { margin: 1em auto; max-width: 800px; width: 95%; font: 18px/1.5 sans-serif; }
|
||||
.example-wrapper code { background: #F5F5F5; padding: 2px 6px; }
|
||||
</style>
|
||||
|
||||
<div class="example-wrapper">
|
||||
<h1>Hello {{ controller_name }}! ✅</h1>
|
||||
|
||||
This friendly message is coming from:
|
||||
<ul>
|
||||
<li>Your controller at <code>/media/astiery/DEV/Boussarie/AP/HegreLand/src/Controller/EmployeeController.php</code></li>
|
||||
<li>Your template at <code>/media/astiery/DEV/Boussarie/AP/HegreLand/templates/employee/index.html.twig</code></li>
|
||||
</ul>
|
||||
</div>
|
||||
{% endblock %}
|
Loading…
Reference in New Issue
Block a user