Questions tagged [symfony-4.3]

Symfony is a PHP framework developed by SensioLabs. Symfony 4.3 was released in May 2019.

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

Bug fixes

  • bug #31654 [HttpFoundation] Do not set X-Accel-Redirect for paths outside of X-Accel-Mapping (@vilius-g)

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.
92 questions
9
votes
1 answer

Unique Constraint return type mismatch

I have this User entity.
Permana
  • 1,972
  • 2
  • 33
  • 51
6
votes
1 answer

There are no registered paths for namespace [Symfony 4.3]

I'm currently building a new bundle and, when I'm trying to include a view from that bundle into a view from the main App (directly under /templates), i've got the error : There are no registered paths for namespace "ContentEditable" in…
Paul ALBERT
  • 271
  • 1
  • 3
  • 8
5
votes
2 answers

method "__construct()" is type-hinted "iterable"

I have 2 files. services.yaml imports: - { resource: services/service_test.yaml } services: _defaults: autowire: true autoconfigure: true and service_test.yaml services: _defaults: autowire: true …
Sancho
  • 1,288
  • 2
  • 25
  • 50
5
votes
1 answer

How can I use API Platform filters in YAML?

First of all, I want to inform you that I already read the docs about the problem I'm having today, and I also made a search on StackOverflow and Google, but didn't find a proper solution. I am building a Customer Relationship Management API for…
Ajie62
  • 141
  • 1
  • 8
5
votes
1 answer

max length for user password field with "algorithm: auto"?

Symfony 4.3 deprecated the bcrypt algorithm, see UPGRADE-4.3.md: Configuring encoders using argon2i or bcrypt as algorithm has been deprecated, use auto instead. So I changed security.yaml to: encoders: App\Entity\User: algorithm:…
the_nuts
  • 5,634
  • 1
  • 36
  • 68
3
votes
1 answer

SSL error when creating vue.js app using api platform client generator

I tried to create client app of my API created using API Platform. I follow this guide https://api-platform.com/docs/client-generator/vuejs/. I use Laravel Homestead for the VM when developing it. I've added myapp .crt file to Keychan…
Permana
  • 1,972
  • 2
  • 33
  • 51
3
votes
2 answers

How to properly auto wire an Interface in Symfony 4.3.x when the method requires parameters?

I am trying to build a Symfony 4.3.3 command where I want to add the ability for callback functions to be overwritten at any time. Look at the following code snippet: namespace App\Command; use Swoole\Http\Request; use Swoole\Http\Response; use…
ReynierPM
  • 17,594
  • 53
  • 193
  • 363
3
votes
1 answer

Symfony 4.3 Routing issue - every route matched with urlRedirectAction

I'm in the process of upgrading Symfony from 3.4 to 4.3 and I have a situation in which every route is matched with controller and method correctly, but then the request reaches RedirectableCompiledUrlMatcher and replaces correct parameters…
domagoj
  • 906
  • 1
  • 8
  • 20
3
votes
2 answers

Symfony form unchanged field returns validation type error

Trying to update an entity, and submitting a field with a value that is unchanged results in a type error. What am I doing wrong? Entity:
Leigh Bicknell
  • 854
  • 9
  • 19
3
votes
3 answers

Symfony update from 4.2 to 4.3 caused Web Profiler to break

I ran composer update and now am getting a slew of deprecation warnings: > [2019-06-03 18:08:41] request.INFO: Matched route "_wdt". >…
Alex.Barylski
  • 2,843
  • 4
  • 45
  • 68
2
votes
1 answer

Validate symfony 4 formfield filetype with mapped false and multiple true

I got a project about snowboard tricks. In my project, I got an entity Trick, that itslef has an attribute "illustrations" that is a collection of another entity : Illustration. I'm trying to do a form TrickType in which the user could load many…
fred
  • 115
  • 11
2
votes
1 answer

Symfony 4 + Select 2 - add more options to entityType

I'm working on app based on Symfony 4 with Select2 library. In my src/Form/PostType.php file I declared field tag, where user should be able to set one of predeclared Tag or add new one (by type tag name and press enter). $builder ->add('tags',…
Leszek
  • 182
  • 1
  • 14
2
votes
2 answers

Symfony Api Platform filtering entities after they are retrieved from persistance layer

I have a situation where I need to extract objects from persistent layer after applying some filters and then do some maths on object data and filter base of another query parameter. Use case: Get all the location which are within the radius of…
sakhunzai
  • 13,900
  • 23
  • 98
  • 159
2
votes
1 answer

Error when installing Bootstrap with yarn in symfony Project

I'm try to install bootstrap in my symfony project (4) with yarn command. "error Incorrect integrity when fetching from the cache" i follow guide document for symfony. https://symfony.com/doc/current/frontend/encore/bootstrap.html i've tried to…
2
votes
2 answers

How to do JSON request on WebTestCase

I install Symfony 4 and then API Platform. Then I create Test class like this class UserFunctionalTest extends WebTestCase { /** @var string */ protected $host = "https://wikaunting-api.local"; /** @var KernelBrowser */ protected…
Permana
  • 1,972
  • 2
  • 33
  • 51
1
2 3 4 5 6 7