-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IBX-3514: Extracted isExpired method #47
Conversation
ViniTou
commented
Aug 4, 2022
Question | Answer |
---|---|
Tickets | IBX-3514 |
|
||
public function buildForm(FormBuilderInterface $builder, array $options) | ||
{ | ||
$builder->addViewTransformer(new InvitationTransformer($this->invitationService)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not an expert on Forms, but can we make InvitationTransformer as a service as well and inject that, instead of instantiating it?
Brief look at the doc would suggest rather that, unless I missed something.
Co-authored-by: Konrad Oboza <konrad.oboza@ibexa.co>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for Andrew's comment though.