Une application SaaS éducative nécessite une séparation stricte des données entre établissements scolaires. L'architecture multi-tenant par sous-domaine (ecole-alpha.classeo.local) permet cette isolation tout en utilisant une base de code unique. Le choix d'une résolution basée sur les sous-domaines plutôt que sur des headers ou tokens facilite le routage au niveau infrastructure (reverse proxy) et offre une UX plus naturelle où chaque école accède à "son" URL dédiée.
19 lines
1019 B
PHP
19 lines
1019 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
return [
|
|
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
|
|
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
|
|
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
|
|
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
|
|
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
|
|
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
|
|
ApiPlatform\Symfony\Bundle\ApiPlatformBundle::class => ['all' => true],
|
|
Lexik\Bundle\JWTAuthenticationBundle\LexikJWTAuthenticationBundle::class => ['all' => true],
|
|
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true],
|
|
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
|
|
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
|
|
Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true],
|
|
];
|