Move events to service and repos

This commit is contained in:
Sander Dorigo
2026-02-04 08:18:35 +01:00
parent 9f016aed16
commit c51df8cd83
5 changed files with 20 additions and 21 deletions

View File

@@ -109,13 +109,6 @@ class StoreController extends Controller
throw new ValidationException($validator);
}
Preferences::mark();
$flags = new TransactionGroupEventFlags();
$flags->applyRules = $data['apply_rules'] ?? true;
$flags->fireWebhooks = $data['fire_webhooks'] ?? true;
$flags->batchSubmission = $data['batch_submission'] ?? false;
Log::debug('CreatedSingleTransactionGroup');
event(new CreatedSingleTransactionGroup($transactionGroup, $flags));
$manager = $this->getManager();