Commit 4126814d authored by Thibaut Vallee's avatar Thibaut Vallee
Browse files

création de la lib

parent ee858922
Loading
Loading
Loading
Loading

.version

0 → 100644
+1 −0
Changes for .version: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
0.0.1
+8 −5
Changes for composer.json: 8 added lines, 5 removed lines.
Original line number Diff line number Diff line
{
    "name": "unicaen-modern/skeleton",
    "name": "unicaen-modern/Authentification",
    "type": "symfony-bundle",
    "description": "Bundle API Platform pour Unicaen Skeleton",
    "description": "Unicaen Authentification",
    "repositories": [
        {
            "type": "composer",
@@ -11,13 +11,16 @@
    "license": "MIT",
    "autoload": {
        "psr-4": {
            "Unicaen\\Skeleton\\": "src/"
            "Unicaen\\Authentification\\": "src/"
        }
    },
    "require": {
        "php": "^8.2",
        "doctrine/orm": "^3.3",
        "api-platform/core": "^4.1"
        "api-platform/symfony": "*",
        "api-platform/core": "^4.2",
        "unicaen-modern/utilisateur": "^0.4",
        "unicaen-modern/privilege": "^1.4"
    },
    "require-dev": {
        "friendsofphp/php-cs-fixer": "^3.75",
@@ -26,7 +29,7 @@
    "extra": {
        "symfony": {
            "bundle": {
                "Unicaen\\Skeleton\\UnicaenSkeletonBundle": "all"
                "Unicaen\\Authentification\\UnicaenAuthentificationBundle": "all"
            }
        }
    }
+1 −1
Changes for config/services.yaml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -3,5 +3,5 @@ services:
    autowire: true
    autoconfigure: true

  Unicaen\Skeleton\:
  Unicaen\Authentification\:
    resource: '../src/*'
 No newline at end of file

src/Entity/.gitignore

0 → 100755
+0 −0

Empty file added.

src/Entity/Skeleton.php

deleted100644 → 0
+0 −57
Changes for src/Entity/Skeleton.php: 0 added lines, 57 removed lines.
Original line number Diff line number Diff line
<?php

namespace Unicaen\Skeleton\Entity;

use ApiPlatform\Metadata\ApiResource;
use ApiPlatform\OpenApi\Model\Operation;
use Doctrine\ORM\Mapping as ORM;

#[ORM\Entity]
#[ORM\Table(name: 'unicaen_skeleton')]
#[ApiResource(
    openapi: new Operation(
        tags: ['unicaen_skeleton Skeleton'],
    )
)]
class Skeleton
{
    #[ORM\Id]
    #[ORM\GeneratedValue]
    #[ORM\Column(type: 'integer')]
    private ?int $id = null;

    #[ORM\Column(length: 255)]
    private ?string $code;

    #[ORM\Column(length: 255)]
    private ?string $libelle;

    public function getId(): ?int
    {
        return $this->id;
    }

    public function getCode(): ?string
    {
        return $this->code;
    }

    public function setCode(?string $code): static
    {
        $this->code = $code;

        return $this;
    }

    public function getLibelle(): ?string
    {
        return $this->libelle;
    }

    public function setLibelle(?string $libelle): static
    {
        $this->libelle = $libelle;

        return $this;
    }
}
Loading