form->getState(); try { $this->record = $userRep->store($data); $this->notify( 'success ', $this->getCreatedNotificationMessage(), ); $this->redirect($this->getRedirectUrl()); } catch (\Exception $exception) { $this->notify( 'danger', $exception->getMessage(), ); } } }