Skip to content

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 ⭐️

584 B
Raw Blame
<?php

declare(strict_types=1);

namespace HiEvents\Enterprise\BoxOffice\Http\Actions;

use HiEvents\DomainObjects\Enums\FeatureFlag;
use HiEvents\Exceptions\FeatureNotEnabledException;
use HiEvents\Http\Actions\BaseAction;
use HiEvents\Services\Domain\FeatureFlag\FeatureFlagService;

abstract class BaseBoxOfficeAction extends BaseAction
{
    /**
     * @throws FeatureNotEnabledException
     */
    protected function assertBoxOfficeEnabled(): void
    {
        app(FeatureFlagService::class)->assertEnabled(FeatureFlag::BOX_OFFICE, $this->getAuthenticatedAccountId());
    }
}