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
15
votes
6 answers

How to start local server with symfony 5 or downgrade version to 4.4?

I started a new project in new Symfony 5 and i can't open my local server. On Symfony 4.4 the command PHP bin/console server:run is OK, But with Symfony 5 the command appears not to be defined... C:\Users\Chris\Code\api-test> php bin/console…
Fradé
  • 195
  • 1
  • 2
  • 9
5
votes
2 answers

Symfony 4.4 metadata_cache_driver configuration key deprecation notice

Since I've upgraded Symfony from 4.4.15 to 4.4.16 I've got following deprecation notice: The "metadata_cache_driver" configuration key is deprecated. PHP Array cache is now automatically registered when %kernel.debug% is false. This is strange as…
ninsky
  • 1,772
  • 23
  • 31
4
votes
1 answer

Symfony 4.4 - Custom Error Templates Not Working

I've got an issue when it comes to using Custom Error Templates in Symfony 4.4 Flex. Everything has been set properly according to the guide from https://symfony.com/doc/4.4/controller/error_pages.html I can access the Custom Error Templates via…
Etereal
  • 51
  • 3
4
votes
1 answer

Best way to use voters/permissions on Symfony messenger async message handler?

I am developing an application that have a Symfony Messenger component installed to handle async messages. The handler of message need to check some permissions for some particulars users, like if one determinate user should receive an email with…
terox
  • 156
  • 2
  • 9
3
votes
1 answer

Symfony CLI does not use the correct PHP version when running the "new" command

I have setup my environment as follows: Wamp 3 with PHP7.1.33 version, composer 2 and the Symfony binary. But when I try to run symfony new my_project_name --version=4.4 --full I get this error: Creating a "symfony/website-skeleton" project at…
zackzulg
  • 599
  • 2
  • 5
  • 21
3
votes
1 answer

How to control Symfony's RepeatedType validation sequence

I am using Symfony's RepeatedType for an email address on a registration form. $builder->add( 'email', RepeatedType::class, [ 'invalid_message' => 'Confirm your email address', ] ); I am also adding constraints to the…
Bananaapple
  • 2,984
  • 2
  • 25
  • 38
3
votes
2 answers

Symfony 4.4 Error on FOSUserBundle Installation

I followed this two post about "how to install fosuserbundle in symfony 4.4": https://vfac.fr/blog/how-install-fosuserbundle-with-symfony-4 https://ourcodeworld.com/articles/read/794/how-to-install-and-configure-fosuserbundle-in-symfony-4 But at the…
3
votes
0 answers

No mapping found for field xy on class xy

Specifications Symfony > 4.4.2 (Not working) Symfony 4.4.1 (Working) I got a problem with my Translations because on every action that includes translations, symfony is throwing a error like "no mapping field 'sprache_id' was found on class…
rebru
  • 519
  • 3
  • 10
3
votes
2 answers

Redirect to "/" route in symfony

I'm trying to redirect to the "/" route (same page) after a form submission: /** * @Route("/") */ My approach: return $this->redirectToRoute('/'); Gives me the following error: Unable to generate a URL for the named route "/" as such route does…
Barskey
  • 423
  • 2
  • 5
  • 18
2
votes
1 answer

How to test a Form having a field being EntityType in Symfony

(Using framework Symfony 4.4) I try to learn about how to test a Form having a field being an EntityType form field. See exemple bellow : class VaccinationType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array…
vincent PHILIPPE
  • 975
  • 11
  • 26
2
votes
1 answer

symfony 4 to 5 cache error when/after upgrade

My problem : Cache Error when upgrading symfony 4.4 to 5.0 (cache clear work on 4.4 ) php : 7.2.5 when upgrade, 7.1 before upgrade Before update symfony 4.4 to 5, i've followed this doc (symfony doc 4.4 to…
2
votes
1 answer

There are no configured encoders for the "security" extension

When I launch this command php bin/console security:encode-password I am getting this error There are no configured encoders for the "security" extension. Do anyone has an idea about this error, I am using Symfony 4 In bundles.php I have…
askermad
  • 85
  • 2
  • 6
2
votes
1 answer

Overriding checkbox form field producing duplicate label and no field in Symfony 4.4

I am having trouble overriding a checkbox field in my Symfony form inside my Twig template. I am building the field with the following code in my Twig template: {{ form_row(form.legal, { 'label' : 'personal.form.fields.legal'|trans, }) }} In the…
crmpicco
  • 16,605
  • 26
  • 134
  • 210
2
votes
2 answers

Symfony 4.4 Declaration of ContainerGWHmz1B\srcApp_KernelDevDebugContainer::getParameter(string $name) must be compatible

I recently upgraded my project from Symfony 3.4 to 4.4. I am stil working on the upgradation but I am stuck in this Fatal error which says Compile Error: Declaration of ContainerGWHmz1B\srcApp_KernelDevDebugContainer::getParameter(string $name) must…
rashidkhan
  • 462
  • 8
  • 24
2
votes
1 answer

Binding exchange to exchange in Symfony messenger component

Is it possible to define binding between exchanges in Symfony messenger component? (4.4 version here). I know that it's possible binding exchange to the queue like here: transports: incoming: dsn:…
Michal S.
  • 450
  • 3
  • 15
1
2 3 4 5 6 7 8