remove unused injection

This commit is contained in:
Damodar Lohani
2025-10-16 03:39:39 +00:00
parent d3436077a1
commit ced2270571
+1 -2
View File
@@ -2610,9 +2610,8 @@ App::post('/v1/account/tokens/phone')
->inject('queueForStatsUsage')
->inject('plan')
->inject('store')
->inject('proofForPassword')
->inject('proofForCode')
->action(function (string $userId, string $phone, Request $request, Response $response, Document $user, Document $project, Database $dbForProject, Event $queueForEvents, Messaging $queueForMessaging, Locale $locale, callable $timelimit, StatsUsage $queueForStatsUsage, array $plan, Store $store, ProofsPassword $proofForPassword, ProofsCode $proofForCode) {
->action(function (string $userId, string $phone, Request $request, Response $response, Document $user, Document $project, Database $dbForProject, Event $queueForEvents, Messaging $queueForMessaging, Locale $locale, callable $timelimit, StatsUsage $queueForStatsUsage, array $plan, Store $store, ProofsCode $proofForCode) {
if (empty(System::getEnv('_APP_SMS_PROVIDER'))) {
throw new Exception(Exception::GENERAL_PHONE_DISABLED, 'Phone provider not configured');
}