mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
- SessionCreated event now carries only domain data (no isFirstSession) - Mails listener uses ordered guard clauses, deferring the DB query until cheaper checks pass - Drop $user Document allocation in favour of direct array access - Inline FileName validator and $smtpEnabled into their use sites - Extract $isBranded to eliminate duplicate APP_BRANDED_EMAIL_BASE_TEMPLATE check Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
21 lines
453 B
PHP
21 lines
453 B
PHP
<?php
|
|
|
|
namespace Appwrite\Bus\Events;
|
|
|
|
use Utopia\Bus\Event;
|
|
|
|
class SessionCreated implements Event
|
|
{
|
|
/**
|
|
* @param array<string, mixed> $user
|
|
* @param array<string, mixed> $project
|
|
* @param array<string, mixed> $session
|
|
*/
|
|
public function __construct(
|
|
public readonly array $user,
|
|
public readonly array $project,
|
|
public readonly array $session,
|
|
public readonly string $locale,
|
|
) {
|
|
}
|
|
}
|