a18e1f575f
- drop ClientPortal module, ClientTicket entity, ROLE_CLIENT and all couplings (Task, TaskDocument, User, Notification) back to an internal-only model - migration drops client_ticket / user_allowed_projects / related FK columns and removes leftover external client accounts (would otherwise be promoted to ROLE_USER) - remove client-portal frontend module, admin tickets tab, user portal section, portal nav item and portal/clientTicket i18n keys - fix directory nav icon (invalid mdi:contact-multiple-outline -> mdi:card-account-details-outline) - add 'make sync-permissions' target, wire it into install/db-reset and the prod deploy script
33 lines
742 B
PHP
33 lines
742 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Shared\Domain\Contract;
|
|
|
|
/**
|
|
* Contrat de LECTURE de l'identité, consommé hors du module Core.
|
|
* Les écritures (setPassword, setters HR…) restent sur le concret Core\Domain\Entity\User.
|
|
*/
|
|
interface UserInterface
|
|
{
|
|
public function getId(): ?int;
|
|
|
|
public function getUserIdentifier(): string;
|
|
|
|
public function getUsername(): ?string;
|
|
|
|
/** @return list<string> */
|
|
public function getRoles(): array;
|
|
|
|
public function getFirstName(): ?string;
|
|
|
|
public function getLastName(): ?string;
|
|
|
|
public function getAvatarUrl(): ?string;
|
|
|
|
public function getIsEmployee(): bool;
|
|
|
|
/** @return list<string> */
|
|
public function getEffectivePermissions(): array;
|
|
}
|