- Introduit Shared/Domain/Contract/SiteInterface que Site implemente - SiteAwareInterface + User.php typent contre SiteInterface (plus d'import direct Core -> Sites, respect regle CLAUDE.md 138) - Exception SiteNotAuthorizedException deplacee dans Shared/, alias retrocompat dans le module - Retire `sites` et `currentSite` des groupes `user:list` et `user:rbac:write` (info leak via /api/users, escalade core.users.manage -> sites.manage) - User::$sites et User::$currentSite en fetch LAZY (N+1 sur /api/users paginee)
19 lines
618 B
PHP
19 lines
618 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Module\Sites\Domain\Exception;
|
|
|
|
use App\Shared\Domain\Exception\SiteNotAuthorizedException as SharedSiteNotAuthorizedException;
|
|
|
|
/**
|
|
* Alias de retrocompatibilite vers Shared\Domain\Exception\SiteNotAuthorizedException.
|
|
*
|
|
* La classe canonique a ete deplacee dans Shared pour rompre le couplage
|
|
* Core → Sites. Les consommateurs existants dans le module Sites
|
|
* (CurrentSiteProcessor) continuent de l'attraper ici sans modification.
|
|
*
|
|
* @see SharedSiteNotAuthorizedException
|
|
*/
|
|
final class SiteNotAuthorizedException extends SharedSiteNotAuthorizedException {}
|