first commit

This commit is contained in:
ASTIER Yann 2024-09-26 15:36:56 +02:00
parent 17b5c60f26
commit 340bab7c53
10 changed files with 114 additions and 0 deletions

View File

@ -0,0 +1,18 @@
<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
#[Route('/dashboard', name: 'IndexController')]
class IndexController extends AbstractController
{
#[Route('', name: '_index')]
public function index(): Response
{
return $this->render('index/index.html.twig');
}
}

1
src/Entity/Category.php Normal file
View File

@ -0,0 +1 @@
<?php

57
src/Entity/Employee.php Normal file
View File

@ -0,0 +1,57 @@
<?php
namespace App\Entity;
use App\Repository\EmployeeRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: EmployeeRepository::class)]
class Employee
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 30)]
private ?string $firstName = null;
#[ORM\Column(length: 30)]
private ?string $lastName = null;
public function getId(): ?int
{
return $this->id;
}
public function setId(int $id): static
{
$this->id = $id;
return $this;
}
public function getFirstName(): ?string
{
return $this->firstName;
}
public function setFirstName(string $firstName): static
{
$this->firstName = $firstName;
return $this;
}
public function getLastName(): ?string
{
return $this->lastName;
}
public function setLastName(string $lastName): static
{
$this->lastName = $lastName;
return $this;
}
}

1
src/Entity/Incident.php Normal file
View File

@ -0,0 +1 @@
<?php

View File

@ -0,0 +1 @@
<?php

1
src/Entity/Mission.php Normal file
View File

@ -0,0 +1 @@
<?php

View File

@ -0,0 +1,21 @@
<?php
namespace App\Entity;
use App\Repository\RequirementsRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\OneToMany(targetEntity: Mission::class, mappedBy: 'requirements')]
#[ORM\OneToMany(targetEntity: Skill::class, mappedBy: 'requirements')]
class Requirements
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
public function getId(): ?int
{
return $this->id;
}
}

1
src/Entity/Ride.php Normal file
View File

@ -0,0 +1 @@
<?php

1
src/Entity/Skill.php Normal file
View File

@ -0,0 +1 @@
<?php

View File

@ -0,0 +1,12 @@
{% extends 'base.html.twig' %}
{% block title %}Dashboard{% endblock %}
{% block body %}
<div class="wrapper">
<h1>Welcome, *Dashboard User* !</h1>
This is a placeholder.
</div>
{% endblock %}