feat : numéro de version et config CI/CD
Some checks failed
Auto Tag Develop / tag (push) Failing after 4s

This commit is contained in:
2026-02-09 15:40:14 +01:00
parent c1025d6066
commit 31c0ae15f4
14 changed files with 295 additions and 51 deletions

View File

@@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
namespace App\ApiResource;
use ApiPlatform\Metadata\ApiResource;
use ApiPlatform\Metadata\Get;
use App\State\AppVersionProvider;
use Symfony\Component\Serializer\Attribute\Groups;
#[ApiResource(
operations: [
new Get(
uriTemplate: '/version',
normalizationContext: ['groups' => ['version:read']],
provider: AppVersionProvider::class,
),
],
)]
final class AppVersion
{
#[Groups(['version:read'])]
public string $version = '';
}