feat(ansible): Met à jour le playbook Ansible pour installer composer sans --no-dev

🔧 chore(web_profiler): Active le web profiler en production
📝 docs(security): Clarifie les étapes d'authentification dans LoginFormAuthenticator
🔧 chore(bundles): Active WebProfilerBundle dans tous les environnements
This commit is contained in:
Serreau Jovann
2025-11-22 21:58:32 +01:00
parent 8be2511e61
commit 68583dd662
4 changed files with 10 additions and 3 deletions

View File

@@ -95,7 +95,7 @@
- "{{ path }}/public/storage"
- name: Exécuter 'composer install' dans le répertoire de l'application
ansible.builtin.command: composer install --no-dev --optimize-autoloader
ansible.builtin.command: composer install
become: false # Run as the connection user (e.g., 'bot')
args:
chdir: "{{ path }}"

View File

@@ -6,7 +6,7 @@ return [
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true],
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['all' => true],
Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true],
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],

View File

@@ -5,6 +5,13 @@ when@dev:
framework:
profiler:
collect_serializer_data: true
when@prod:
web_profiler:
toolbar: true
intercept_redirects: false
framework:
profiler:
collect_serializer_data: true
when@test:
framework:

View File

@@ -66,7 +66,7 @@ class LoginFormAuthenticator extends AbstractLoginFormAuthenticator
return $user;
}),
// 2. Credentials: Vérifie le mot de passe
// 2. Credentials: Vérifie le mot de passe
new PasswordCredentials($request->request->get('_password', '')),
[
// 3. CsrfTokenBadge: Vérifie le jeton CSRF (l'ID 'authenticate' doit correspondre au Twig)