Category : symfony-2.8

We have a service is defined in service.yml like follows: app.vendor_ticketing: class: appServicesVendorTicketingService arguments: – "@service_container" – "%jira_ticketing_auth_header%" – "%ticketing_attachments_upload_path%" Now I want to reuse this service somewhere else in code and need to change "%jira_ticketing_auth_header%" parameter to "%jira_token%" Is there any way to override the service with new parameter or any other solution? Note ..

Read more

I have a code which use to work to generate PDF with the KNP Snappy bundlde with Symfony2. This is what it looks like: $this->container->get(‘knp_snappy.pdf’)->generateFromHtml( $this->templating->render( $twigInclude, array( , ‘htmlFiles’ => $htmlFiles, ‘headlines’ => $headlines, ) ), $folderHistory . ‘/reports/’ . $filename . ‘.pdf’ ); My issue is that, I want to set margins and ..

Read more

I have 2 form type that display 2 selects $builder ->add(‘control1’, EntityType::class, [ ‘label’ => ‘Country’, ‘class’ => Country::class, ]) ->add(‘control2’, EntityType::class, [ ‘label’ => ‘State’, ‘class’ => State::class, ]) then in the twig template {{ form_row(form.control1)}} {{ form_row(form.control2)}} How can I enable control2 only if a specific option is selected in control 1? thanks. ..

Read more

(I submitted this question earlier, admittedly in a hurry and not very well written, and got downvoted for it. I deleted my other question and am resubmitting it after completely rewriting it to be as exhaustive as possible). I am working on a Symfony 2.8 app, and I am adding a form to update a ..

Read more