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

Using RedisTagAwareAdapter in Symfony 4.4

I have an issue getting Symfony to play nicely with a tag-aware adapter for redis Unfortunately for me, Symfony 5.2 includes this feature, but as we're not switching to a non-lts version that's kind of out of the question. I have tried checking out…
P.K.
  • 777
  • 1
  • 7
  • 18
0
votes
1 answer

Twig file doesn't display anything (SYMFONY 4.4)

i'm a beginner in Symfony (4.4) , my problem is only the content of base.html.twig is displayed but not the other twig files of each controller , but when i remove the {% extends 'base.html.twig' %} it works perfectly but without the navbar ( the…
Hello_world
  • 65
  • 1
  • 3
  • 17
0
votes
0 answers

How to load route from a deactivable bundle

After many searches, I don't find how to load dynamically routes from a bundle that could be "deactivated". In a legacy project using Symfony 4.4, a custom script could enable or disable a bundle. This script only comment lines in AppKernel.php.…
Skuti
  • 161
  • 1
  • 8
0
votes
0 answers

Overriding the label of a single form field to include HTML in Symfony 4.4

I am having issues overriding a label in my form in my Symfony 4.4 application: {{ form_row(form.legal, { 'label' : 'personal.form.fields.legal'|trans }) }} personal.form.fields.legal looks like this: I agree that I am 18 and above, I have read…
crmpicco
  • 16,605
  • 26
  • 134
  • 210
0
votes
1 answer

ParseError: syntax error, unexpected 'EntityManagerInterface' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)

This code produces the error: /** * @var EntityManagerInterface */ private EntityManagerInterface $entityManager; public function __construct(EntityManagerInterface $entityManager) { $this->entityManager =…
FDjawid
  • 241
  • 3
  • 23
0
votes
2 answers

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

I created an Email/Password Login form & have a great disappointing problem :( First of all, This is what I got (I'm using Symfony 4.4.18): & these are my codes: This is the User Entity (supportsClass() method…
A.Emami
  • 19
  • 1
  • 3
0
votes
1 answer

LANG variable isn't overriden in testing environment

I'm working on a Symfony 4.4 project. The project has been created from scratch (it's not an update from a 3.4 codebase or something like that). I'm adding automated tests to my codebase, but I'm having problems with environment variables. In my…
mHouses
  • 875
  • 1
  • 16
  • 36
0
votes
2 answers

How to get the value of a key from the .env file?

In the .env file there are settings of key values; for example : APP_ENV=prod How to get the value of the key APP_ENV for example ?
pheromix
  • 18,213
  • 29
  • 88
  • 158
0
votes
1 answer

Only "/" is working for a symfony 4.4 application

When I run my symfony 4.4 application with php bin/console server:run every route is working perfectly. The problem comes when I use apache 2 in an Ubuntu server, only the "/" route is working and other routes return 404 not found I installed the…
Tarek Bakri
  • 91
  • 1
  • 10
0
votes
2 answers

Add TINYINT to Doctrine SQL types

Following Symfony doc, I tried to add TINYINT as entity column type. So far it works well, but two problem remain... Each time I want to perform a migration, Doctrine can't reconize TINYINT for the associated columns, and perform the migration…
Preciel
  • 2,666
  • 3
  • 20
  • 45
0
votes
0 answers

Symfony 4.4.15 dependency-injection deprecation

I am updating my instance of Symfony to 4.4.15 and I have come across a deprecation that I can't make sense of. It is saying: Since symfony/dependency-injection 5.1: Not setting the attribute "package" of the node "deprecated" in…
elyod72
  • 125
  • 7
0
votes
1 answer

Can I directly get a nested list in my Doctrine result?

Sorry if the question is poorly phrased, I couldn't come up with a good way of describing my issue. So basically, I'm using the Doctrine query builder to try and a list of training sessions from my Session entity. For each session, I need to fetch…
ntyss
  • 91
  • 3
  • 10
0
votes
0 answers

How to pass an array into the IN statement in doctrine raw query?

I have an array numbers. $numbers = [ "3286340600316", "3286340619912", "3286340641418", "3286340883818", "3286340960618", ]; $connection = $this->entityManager->getConnection(); $result =…
Znk
  • 29
  • 7
0
votes
2 answers

Symfony 4 with translations, no route to / without _locale

I created a Symfony 4.4.8 project with translations to English and French languages, so I followed the steps: https://symfony.com/doc/current/translation.html and set: config/packages/translation.yaml framework: default_locale: 'fr' …
bcag2
  • 1,988
  • 1
  • 17
  • 31
0
votes
1 answer

How to use getter & setter using dependency injection?

I am trying to implement Dependency Injection in Symfony. I created a class named Token as follows: class Token { private $token; private $key; public function __construct(string $key) { $this->key = $key; …
Znk
  • 29
  • 7