User Lifecycle Service (Iam/UserLifecycleService.php)

synaplan · backend/src/Service/Iam/UserLifecycleService.php · php · Apache-2.0
database, auth, lang:php, fw:symfony, tag:embed-classified, tag:backend

A central service for managing user account creation and lifecycle consistency. Use this to ensure uniform user provisioning across registration and administrative workflows.

// Source: https://github.com/metadist/synaplan | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
<?php

declare(strict_types=1);

namespace App\Service\Iam;

use App\Entity\User;
use App\Service\Chat\GuestSessionService;
use App\Service\Email\EmailChatService;
use App\Service\ModelConfigService;
use Doctrine\ORM\EntityManagerInterface;
use Psr\Log\LoggerInterface;
use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;

/**
 * Central factory for BUSER rows.
 *
 * Every code path that creates a user account should go through createUser()
 * so entity defaults stay consistent. New accounts no longer receive frozen
 * per-user DEFAULTMODEL rows — global defaults appl

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key