Skip to content

Instantly share code, notes, and snippets.

@dgafka
Created February 2, 2024 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgafka/06e145e576508710bd145edea5d0f37a to your computer and use it in GitHub Desktop.
Save dgafka/06e145e576508710bd145edea5d0f37a to your computer and use it in GitHub Desktop.
multi-tenancy-14.php
<?php
#[EventHandler]
public function audit(
CustomerWasRegistered $event,
AuditRepository $auditRepository,
#[Header('tenant')] string $tenantName
)
{
$auditRepository->store($event, $tenantName);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment