Files
Ferme/src/State/Bovin/BovineSyncInventoryProcessor.php
tristan 5da0003c4d
Some checks failed
Auto Tag Develop / tag (push) Has been cancelled
[#FER-25] Ajout un cron pour la synchro de l'inventaire bovin (!55)
| Numéro du ticket | Titre du ticket |
|------------------|-----------------|
|                  |                 |

## Description de la PR

## Modification du .env

## Check list

- [x] Pas de régression
- [ ] TU/TI/TF rédigée
- [x] TU/TI/TF OK
- [x] CHANGELOG modifié

Reviewed-on: #55
Co-authored-by: tristan <tristan@yuno.malio.fr>
Co-committed-by: tristan <tristan@yuno.malio.fr>
2026-05-18 07:40:10 +00:00

30 lines
698 B
PHP

<?php
declare(strict_types=1);
namespace App\State\Bovin;
use ApiPlatform\Metadata\Operation;
use ApiPlatform\State\ProcessorInterface;
use App\ApiResource\BovineSyncInventoryResult;
use App\Service\BovineInventorySyncer;
/**
* @implements ProcessorInterface<mixed, BovineSyncInventoryResult>
*/
final readonly class BovineSyncInventoryProcessor implements ProcessorInterface
{
public function __construct(
private BovineInventorySyncer $syncer,
) {}
public function process(
mixed $data,
Operation $operation,
array $uriVariables = [],
array $context = [],
): BovineSyncInventoryResult {
return $this->syncer->sync();
}
}