暫無描述

Olivier Massot f2bcd21afb Merge branch 'V8-6817_gardes_fous_suppression_orgas' into feature/V8-3988-suppression-orgas 1 年之前
bin fe765c792e setup new public events view and override schema:update command 3 年之前
config 8142b4023d minor fixes 1 年之前
doc d1c3f270e2 update doc about internal requests 1 年之前
env 8fa1de7c86 add bindfile path to test envs 1 年之前
fixtures 92462a4671 upgrade 3.1.2 2 年之前
migrations 258fa22c3b Revert "tests applicatifs" 1 年之前
old f96da113d5 réparer les tests applicatifs 1 年之前
public 55aa498c15 manage error on missing image file and return missing-file.png 1 年之前
sql e333780bc3 Merge branch 'v8-6345-structure-sans-produit-sur-agenda' into develop 1 年之前
src b51a88b82d remove the 'dd' used for tests 1 年之前
templates 9b84d3ee27 ajout du cache de liip et changement de l'architecture du file manager 2 年之前
tests 743b4dca7a complete unit tests 1 年之前
translations cfeafc1114 fix cmf licence translation 2 年之前
.env 5dd2d28fbc set mailer dsn for test envs 1 年之前
.gitignore 35dc4cf0c0 script lancement de test 1 年之前
.gitlab-ci.yml 57654cdad9 fix ci 1 年之前
.php-cs-fixer.dist.php ad81dfbf35 disable yoda style in cs fixer 1 年之前
application_tests.sh 35dc4cf0c0 script lancement de test 1 年之前
composer.json 171554ab41 raise PHP required version from 8.1 to 8.2 1 年之前
icon.svg 571cc0322a post MR fixes; add HttpCodeEnum and fix return codes 1 年之前
logo.png 51b2e302e9 add logo 4 年之前
phpstan.neon.dist 35ea6a77bd fix phpstan configuration 1 年之前
phpunit.xml.dist 2c51844686 tests applicatifs 1 年之前
readme.md b726189b56 update readme 1 年之前
rector.php f687c7743b rector update 2 2 年之前

readme.md

AP2I

pipeline status coverage report

Démarrer le handler de messenger

Pour consommer les signaux messengers, lancer :

php bin/console messenger:consume async

En cas d'erreur lié à l'absence de la table messenger_messages, lancer d'abord :

php bin/console messenger:setup-transports

Voir: https://symfony.com/doc/5.4/messenger.html#consuming-messages-running-the-worker

Chercher les erreurs avec phpstan

Pour exécuter une analyse du code :

vendor/bin/phpstan analyse

Voir : https://phpstan.org/user-guide/getting-started

PHPStan

Le fichier comportant la configuration pour chacun est phpstan.neon.dist Le fichier phpstan.neon n'est pas versionné et surcharge les valeurs du .dist

Principales commandes

Pour lancer l'analyse

vendor/bin/phpstan analyse

Pour vider le cache (utiles entre chaque analyse si les modifications ne sont pas prises en compte)

vendor/bin/phpstan clear-result-cache

Voir : https://phpstan.org/

CS Fixer

Vérifier le code

php vendor/bin/php-cs-fixer check --config=.php-cs-fixer.dist.php

Corriger le formatage du code automatiquement

php vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php