Top "Symfony4" questions

Symfony is a PHP framework developed by SensioLabs.

Symfony4 "object not found by the @ParamConverter annotation" 404 error

I discover Symfony4 with similar blog sample like describe in https://symfony.com/doc/current/routing.html Then I added …

symfony4
Symfony 4, get .env parameter from a controller, is it possible and how?

From symfony 4, I want create a global parameter and get the value of this parameter from a controller. This parameter …

php symfony symfony4
Symfony 4 SwiftMailer Gmail : Email not sent

I'm currently working on a Symfony 4 application and I need to send emails throught Swift Mailer. When I send an …

php gmail swiftmailer symfony4
Symfony 4: How to organize folder structure (namely, your business logic)

In the Symfony Best Practices is advised to not use bundles to organize business logic. The bundles should be used …

symfony symfony4
How to inject Doctrine Entity Manager into Symfony 4 Service

I have a controller use Doctrine\ORM\EntityManagerInterface: class ExampleController{ public function someFunction(ExampleService $injectedService){ $injectedService->serviceFunction(); } } With a …

symfony doctrine symfony4
Download PhpSpreadsheet file without save it before

I'm using PhpSpreadsheet to generate an Excel file in Symfony 4. My code is: $spreadsheet = $this->generateExcel($content); $writer = new …

php-7 symfony4 phpspreadsheet
How to add Fontawesome 5 to Symfony 4 using Webpack Encore

I want to add Font Awesome 5 to my Symfony 4 project, this is what I did : I added font awesome to …

symfony4 font-awesome-5 webpack-encore
Cannot inject Templating on Symfony 4 Service

I have the following class: EmailNotification namespace App\Component\Notification\RealTimeNotification; use Symfony\Bridge\Twig\TwigEngine; use Symfony\Bundle\FrameworkBundle\…

symfony symfony4
Symfony 4: "Autowire: you should configure its value explicitly."

I'm starting to working with Symfony4 and I meet the following error when I try to run my server: Cannot …

php symfony4
Symfony 4 - Service removed or inlined though it is public

I'm trying to migrate a SF 3.3 app to SF 4 with its new directory structure and everything. I'm struggling on this …

symfony dependency-injection symfony4 symfony-flex