Questions tagged [symfony-4.4]

Symfony is a PHP framework developed by SensioLabs. Symfony 4.4 was released in November 2019.

Symfony is a PHP web framework first released in July 2011 and was created by SensioLabs. Symfony 4.4 was released in November 2019.

Bug fixes

  • bug #34464 [Form] group constraints when calling the validator (@nicolas-grekas)
  • bug #34451 [DependencyInjection] Fix dumping multiple deprecated aliases (@shyim)
  • bug #34448 [Form] allow button names to start with uppercase letter (@xabbuh)
  • bug #34428 [Security] Fix best encoder not wired using migrat _from (@chalasr)

Documentation / Resources

  • Overview: Documentation for current version.
  • Flex: New way to manage Symfony apps.
  • Best Practices: Best practices for developing web apps, esp. the ones using the full-stack Symfony framework.
  • Symfony Recipes Server: Includes official and community recipes.
108 questions
0
votes
1 answer

Generate quey on doctrine querybuilder

I have three entities Compound, ComponentQuantity, and Component the Compound has a ManyToMany relationship with ComponentQuantity and ComponentQuantity has a ManyToMany relationship with Component. I need to get the Compound's which…
dr_fg2
  • 47
  • 1
  • 1
  • 5
0
votes
0 answers

creating a Symfony 4.4 project on windows using composer 1.10.26 : Script cache:clear returned with error code 255 dotenv

Since yesterday, I have a problem creating a project with the command: composer create-project symfony/website-skeleton:"^4.4" my_project_directory on windows. I used php 7.3 symfony 4.4 composer 1.10.0 or 1.10.26 for I have to train on this…
Manon
  • 21
  • 6
0
votes
0 answers

After upgrading symfony from 3.4 to 4.4(without flex) getting service or alias has been removed or inlined when the container was compiled

After updating symfony from 3.4 to 4.4(without flex) i am getting this error The "tactician.commandbus" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container…
0
votes
2 answers

I have an error whe I try to reset my passord using ResetPasswordBundle from Symfony

I have an exception whe I try to reset password in my app. I use Symfony 4.4 and and installed "symfonycasts/reset-password-bundle": "^1.13", the controller is the next: class ResetPasswordController extends AbstractController { use…
0
votes
1 answer

JsonResponse returns the json response plus the request data in string format problem

I'm making post requests using ajax in my symfony 4.4 project, and i return the response using fosrestbundle, sometimes it returns a correct json response but sometimes, the response includes also the data sent with request as a string, which is…
0
votes
0 answers

Simulating auth in tests for Symfony 4.4 with ZenstruckFoundry

In Symfony 4.4 I am attempting simulate authenticating a user so that I can write PHPUnit tests for a secured area of my application. I am using the ZenstruckFoundry to create a factory for my User that will be authenticated. I have also followed…
tptcat
  • 3,894
  • 2
  • 32
  • 51
0
votes
1 answer

KnpPaginator does not work with FosElastica after update

I'm trying to update an existing dockerized Symfony project - developed in 2019 - from 4.4.19/PHP7 to 4.4.37/PHP8 So I've created a new empty project using the last version of Symfony4 and installed all third party bundles so I'm sure I'll get the…
0
votes
2 answers

How to customize the display of "There is already an account with this" message in Twig

I'm trying to customize the display of this error message "There is already an account with this" in Twig. This is the relevant code in the form class: ->add('cin', TextType::class, [ 'required' => true, ]) And here is the…
Nadim
  • 382
  • 1
  • 7
  • 29
0
votes
1 answer

How to get only text instead of list item from form_errors

I'm trying to display an error message for a repeated password field in Symfony 4.4. Here is the relevant code in the form class file: ->add('password', RepeatedType::class, array( 'required' => true, 'invalid_message' => 'Le…
Nadim
  • 382
  • 1
  • 7
  • 29
0
votes
1 answer

Symfony 4.4 - How to pass UserInterface as a parameter to the encodePassword function

I would like to know how to pass UserInterface as a parameter to the encodePassword function. Actually, when running the following command line php bin/console doctrine:fixtures:load , I got this message error: Argument 1 passed to…
Nadim
  • 382
  • 1
  • 7
  • 29
0
votes
1 answer

"php bin/console server:run" immediately followed by "composer require symfony/mailer" whenever it is run

I'm working on a Symfony project and would like to know why whenever I run the following command in terminal php bin/console server:run it would be immediately followed by this one composer require symfony/mailer. This is a screenshot of…
Nadim
  • 382
  • 1
  • 7
  • 29
0
votes
1 answer

Symfony 4.4 - Swift Mailer installation failed

I'm a beginner in Symfony and would like to know how to deal with the following installation issue: I'm using Symfony 4.4 and trying to install Swift Mailer. Following the documentation on this link, when I ran the following command composer require…
Nadim
  • 382
  • 1
  • 7
  • 29
0
votes
1 answer

Symfony PHPUnit tests don't authenticate user

I have a Symfony 4.4 project. Login, authentication, and authorization work fine on web. To simulate authentication in unit tests, I'm using Symfony's example. ...but that's not working. The user is not authenticated in the unit test. I get an…
amacrobert
  • 2,707
  • 2
  • 28
  • 37
0
votes
1 answer

Symfony 4.4 how to start with 0 fields using a collectionType

I have a entity based collectionType in my form. I want users to be able to dynamicly add new fields based on a different field. So at the page load I want 0 fields to be shown. After the user filled in all the fields to make the generation process…
Allart
  • 830
  • 11
  • 33
0
votes
0 answers

There is no user provider for user "...". Shouldn't the "supportsClass()" method of your user provider return true for this classname?

I've been using this Userprovider with Symfony, which extends the original LdapUserProvider and only adds some roles, depending on the ActiveDirectory groups the user is in. It was working fine, but since Symfony 4.4…
Gerald Schneider
  • 17,416
  • 9
  • 60
  • 78