BCard - Documentation technique

GeneratePublicHashCommand extends Command
in package

Génère un hash public pour chaque `BusinessCardAize` qui n'en possède pas encore.

Commande : php bin/console app:generate-public-hashes. Sans argument ni option. Destinée au rattrapage ponctuel des cartes créées avant l'introduction du hash public, ou après une migration de données.

Effets de bord : parcourt les cartes dont publicHash est null, calcule un HMAC SHA-256 de l'identifiant de la carte à l'aide de APP_SECRET (même logique que CardController), affecte le résultat via setPublicHash(), puis flush l'ensemble des modifications en base.

Attributes
#[AsCommand]
$name: 'app:generate-public-hashes'
$description: 'Generates public hashes for business cards that do not have one'

Table of Contents

Properties

$entityManager  : EntityManagerInterface

Methods

__construct()  : mixed
execute()  : int

Properties

Methods

__construct()

public __construct(EntityManagerInterface $entityManager) : mixed
Parameters
$entityManager : EntityManagerInterface

execute()

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

        
On this page

Search results