a60a6e46de1a0fb016fbcf61d8c3fc4f73eca7af
| Numéro du ticket | Titre du ticket | |------------------|-----------------| | | | ## Description de la PR ## Modification du .env ## Check list - [ ] Pas de régression - [ ] TU/TI/TF rédigée - [ ] TU/TI/TF OK - [ ] CHANGELOG modifié Reviewed-on: #4 Co-authored-by: tristan <tristan@yuno.malio.fr> Co-committed-by: tristan <tristan@yuno.malio.fr>
Bundle Malio ednotif
Installation prod
{
"repositories": [
{
"type": "vcs",
"url": "https://gitea.malio.fr/MALIO-DEV/ednotif-bundle"
}
]
}
Utilisation en dev
Pour le développement, vous pouvez utiliser une configuration de type "path" dans votre fichier composer.json plutôt que de configurer le dépôt Git. Cette approche est plus pratique pour tester des modifications locales :
{
"repositories": [
{
"type": "path",
"url": "../soap-generator-bundle",
"options": {
"symlink": true
}
}
]
}
Dans le docker-composer.yaml
volumes:
- ../ednotif-bundle:/var/www/html/ednotif-bundle
Utilisation
Le bundle expose Malio\EdnotifBundle\Bovin\Api\BovinApiInterface. Injection standard par autowiring.
use Malio\EdnotifBundle\Bovin\Api\BovinApiInterface;
final class MyController
{
public function __construct(private BovinApiInterface $ednotif) {}
public function example(): void
{
// Dossier d'un bovin
$file = $this->ednotif->getAnimalFile('FR1234567890');
// Inventaire du cheptel à une date
$inventory = $this->ednotif->getInventory(
startDate: new \DateTimeImmutable('2026-01-01'),
includeEarTagStock: true,
);
// Retours de notifications depuis une date
$returns = $this->ednotif->getReturnedDossiers(new \DateTimeImmutable('2026-03-01'));
// Sorties présumées par l'IPG (flux de rapprochement)
$presumed = $this->ednotif->getPresumedExits();
}
}
Toutes les méthodes lèvent Malio\EdnotifBundle\Shared\Exception\EdnotifException en cas de Resultat=false côté EDNOTIF.
Description