Category: symfony

Configure file for symfony/mailer package [duplicate]

I need a bit help with configurations symfony/mailer in config/*.yaml. For TLS connection I want inject StreamOptions that he don’t checked certificatE and don’t have SSL Error: “routines:tls_process_server_certificate:certificate verify failed” For SwiftMailer this strings deciding problem: $transport->setStreamOptions( [ ‘ssl’ =>…

Symfony : embeded subform and createdAt / updatedAt : validation conflict

I have an entity form that embed a collectionType and subforms. In order to make the required option work, I had to enable Auto_mapping class ClassePriceType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { $builder ->add(‘priceform’, PriceformType::class, […

How to set normalization groups based on user’s role and request method

I am creating a sandbox app as Api-platform practice and I have the following problem to address: Let’s consider following REST endpoint for user entity: DISCLAIMER in the code examples there are a little more attributes but the whole concept…