Symfony 4: ROLE_USER doesn’t inherit IS_AUTHENTICATED_FULLY and Voter throws AccessDeniedException

I’m working on a legacy project with a lot of ancient staffs. There’re huge numbers of actions which are used really rare. Half a year ago we upgraded from Symfony 2.8 to Symfony 4.4. All worked …

Symfony Ldap checkPassword

I’m using Symfony 4.4 and I’m doing my own authenticator. Everything works fine, I just can’t figure out how to compare the password entered by the user and the one in Ldap. I would like to do this in …

symfony 4: after successful authentication it redirects to admin area and populates the TokenStorage with an anonymous Token

I had an old Symfony 3.1 site that I upgraded to Symfony 3.4.x then to Symfony 4.4.11 but I didn’t upgrade it to symfony flex. I fixed many things and the public sites seem working. I had to rebuild …

Send Onesignal notification using php api : The parameter “send_after” of onesignal’s notification is not taken into consideration

Im working on a project using php/symfony 4, and after the creation of an object, I send a push notification, normaly without specifying the delivery parameter “send_after”, it is working …

Symfony HttpClient GET request with multiple query string parameters with same name

I am trying to make an API request in the following format: /api/v1/courses?enrollment_state=active&include[]=total_students&include[]=term How can I do so using the HttpClient Component …

Symfony problem with range Datetime (form)

I don’t understand my problem. If you can just give me an idea. I have a dateTime field who works but my field years have a bizzare range (2015-2025). I want to have a bigger range (e.g : 1960-2040). …

Generate entity from an existing table

I have a already created table: CREATE TABLE `jt_version` ( `version` int(11) NOT NULL COMMENT ‘103’, `model` varchar(4) COLLATE utf8_unicode_ci NOT NULL DEFAULT ” COMMENT ‘108’ From this …

Symfony 4 – .env Variables Not Available

I’m running in to a brick wall here. Everything so far with Symfony 4 has been sunshine and daisies but now I can’t seem to add any environment variables to my project. In my project root there is …

Can Symfony 4 be configured to ignore code installed in subdirectories?

I’m currently converting an old website to use Symfony 4 and the site uses the LiveZilla live chat app. LiveZilla lives in a subfolder of the site, and is accessed directly using URLs under somesite….

Show form errors

I would like to show error messages in the top of my registration form. I created my registration form:

Register

{{ form_start(form) }} {{ …