All checks were successful
Auto Tag Develop / tag (push) Successful in 6s
| Numéro du ticket | Titre du ticket | |------------------|-----------------| | | | ## Description de la PR ## Modification du .env ## Check list - [x] Pas de régression - [x] TU/TI/TF rédigée - [x] TU/TI/TF OK - [ ] CHANGELOG modifié Co-authored-by: Matthieu <mtholot19@gmail.com> Reviewed-on: #8 Co-authored-by: tristan <tristan@yuno.malio.fr> Co-committed-by: tristan <tristan@yuno.malio.fr>
26 lines
686 B
PHP
26 lines
686 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Module\Sites\Application\Service;
|
|
|
|
use App\Module\Sites\Domain\Entity\Site;
|
|
|
|
/**
|
|
* Contrat de resolution du site courant pour l'outillage opt-in
|
|
* "site-aware" (ticket 4 module Sites).
|
|
*
|
|
* Facilite le test de l'extension et du processor en permettant un mock
|
|
* sans dependre de l'implementation concrete (qui garde `final` pour
|
|
* l'immutabilite du service en prod).
|
|
*
|
|
* Retourne `null` dans trois cas (cf. CurrentSiteProvider) :
|
|
* - module Sites desactive dans config/modules.php
|
|
* - pas d'user authentifie
|
|
* - user sans currentSite positionne
|
|
*/
|
|
interface CurrentSiteProviderInterface
|
|
{
|
|
public function get(): ?Site;
|
|
}
|