Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
<?php
declare(strict_types=1);
namespace HiEvents\Services\Application\Handlers\Admin\FeatureFlags;
use HiEvents\Repository\DTO\AccountFeatureFlagDTO;
use HiEvents\Repository\Interfaces\AccountRepositoryInterface;
use HiEvents\Services\Domain\FeatureFlag\FeatureFlagService;
use Illuminate\Support\Collection;
class GetAccountFeatureFlagsHandler
{
public function __construct(
private readonly AccountRepositoryInterface $accountRepository,
private readonly FeatureFlagService $featureFlagService,
) {}
/**
* @return Collection<string, AccountFeatureFlagDTO>
*/
public function handle(int $accountId): Collection
{
return $this->featureFlagService->getFlagsForAccount(
$this->accountRepository->findById($accountId)->getId()
);
}
}