feat: Infrastructure multi-tenant avec isolation par sous-domaine
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.
This commit is contained in:
@@ -38,6 +38,8 @@
|
||||
},
|
||||
"require-dev": {
|
||||
"doctrine/doctrine-fixtures-bundle": "^4.0",
|
||||
"friendsofphp/php-cs-fixer": "^3.65",
|
||||
"phpat/phpat": "*",
|
||||
"phpstan/phpstan": "^2.0",
|
||||
"phpstan/phpstan-doctrine": "^2.0",
|
||||
"phpstan/phpstan-symfony": "^2.0",
|
||||
@@ -48,8 +50,7 @@
|
||||
"symfony/maker-bundle": "^1.62",
|
||||
"symfony/phpunit-bridge": "^8.0",
|
||||
"symfony/stopwatch": "^8.0",
|
||||
"symfony/web-profiler-bundle": "^8.0",
|
||||
"friendsofphp/php-cs-fixer": "^3.65"
|
||||
"symfony/web-profiler-bundle": "^8.0"
|
||||
},
|
||||
"config": {
|
||||
"allow-plugins": {
|
||||
@@ -57,7 +58,8 @@
|
||||
"symfony/flex": true,
|
||||
"symfony/runtime": true
|
||||
},
|
||||
"sort-packages": true
|
||||
"sort-packages": true,
|
||||
"process-timeout": 600
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
@@ -84,6 +86,7 @@
|
||||
"scripts": {
|
||||
"auto-scripts": {
|
||||
"cache:clear": "symfony-cmd",
|
||||
"cache:warmup": "symfony-cmd",
|
||||
"assets:install %PUBLIC_DIR%": "symfony-cmd"
|
||||
},
|
||||
"post-install-cmd": [
|
||||
@@ -94,8 +97,10 @@
|
||||
],
|
||||
"test": "phpunit",
|
||||
"phpstan": "phpstan analyse --memory-limit=512M",
|
||||
"arch": "phpstan analyse tests/Architecture --configuration=phpstan.neon --level=1",
|
||||
"cs-fix": "php-cs-fixer fix",
|
||||
"cs-check": "php-cs-fixer fix --dry-run --diff"
|
||||
"cs-check": "php-cs-fixer fix --dry-run --diff",
|
||||
"warmup": "bin/console cache:warmup"
|
||||
},
|
||||
"conflict": {
|
||||
"symfony/symfony": "*"
|
||||
|
||||
Reference in New Issue
Block a user