diff --git a/Controller.php b/Controller.php index 33f4f27..18bf15b 100644 --- a/Controller.php +++ b/Controller.php @@ -233,7 +233,10 @@ final class Controller extends ModuleAbstract implements WebInterface $created = []; foreach ($profiles as $profile) { + $this->app->eventManager->trigger('PRE:Module:Admin-profile-create', '', $profile); ProfileMapper::create($profile); + $this->app->eventManager->trigger('POST:Module:Admin-profile-create', '', $profile); + $created[] = $profile->jsonSerialize(); }