BCard - Documentation technique

SeedDevAccountsCommand extends Command
in package

Seeds test accounts used by the dev quick-login panel.

Idempotent (upsert by email), purges nothing, sends no email. Refuses to run unless DEV_QUICK_LOGIN is enabled.

Attributes
#[AsCommand]
$name: 'app:seed-dev-accounts'
$description: 'Create or update the @dev.local test accounts (requires DEV_QUICK_LOGIN=true)'

Table of Contents

Constants

COMPANY_NAME  : mixed = 'Dev Corp'
PASSWORD  : mixed = 'password'

Properties

$devQuickLogin  : bool
$entityManager  : EntityManagerInterface
$passwordHasher  : UserPasswordHasherInterface
$planRepository  : PlanRepository

Methods

__construct()  : mixed
execute()  : int
ensureEmployee()  : void
ensureSubscription()  : void
getOrCreateCompany()  : Company

Constants

Properties

Methods

__construct()

public __construct(bool $devQuickLogin, EntityManagerInterface $entityManager, UserPasswordHasherInterface $passwordHasher, PlanRepository $planRepository) : mixed
Parameters
$devQuickLogin : bool
$entityManager : EntityManagerInterface
$passwordHasher : UserPasswordHasherInterface
$planRepository : PlanRepository

execute()

protected execute(InputInterface $input, OutputInterface $output) : int
Parameters
$input : InputInterface
$output : OutputInterface
Return values
int

ensureSubscription()

private ensureSubscription(User $user, string $planName, bool $isNewUser, SymfonyStyle $io) : void
Parameters
$user : User
$planName : string
$isNewUser : bool
$io : SymfonyStyle

        
On this page

Search results