Questions tagged [symfony5.4]

84 questions
3
votes
0 answers

"composer recipes:update" inside a Docker PHP container triggers "fatal: not a git repository"

I'm upgrading an app from Symfony 5.4 (PHP 7.4) to Symfony 6.0 (PHP 8) with the help of this guide: https://symfonycasts.com/screencast/symfony6-upgrade/framework-bundle-recipe I managed to get the 5.4 app to run properly on my Dockerfile's FROM…
Aislinn
  • 73
  • 6
2
votes
1 answer

Caching problem when manipulating the product price dynamically

For a plugin I need to manipulate a product price dynamically. I a customer calls the product URL with the parameter ?price=special the price needs to be manipulated on the detail page and on every following request everywhere in the shop (slider on…
Dennis
  • 59
  • 1
  • 4
2
votes
1 answer

Deprecation notices in every console command following Symfony 5.4 upgrade

I am quite confused by the following deprecation notice in my Symfony 5.4 application. The "Symfony\Component\Console\Command\Command::$defaultName" property is considered final. You should not override it…
crmpicco
  • 16,605
  • 26
  • 134
  • 210
2
votes
1 answer

Symfony 5.4 with lexik/jwt-authentication-bundle - JWT token not signed resulting in JWTEncodeFailureException

I refactored a Symfony 3 project to Symfony 5.4. For some API endpoints to work I need jwt token auth to work which I try with lexik/jwt-authentication-bundle (2.16). My setup is as…
2
votes
0 answers

An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory

i just have push my Symfony 5.4 application in my company server with Gitlab-ci and docker. I have a Dokcerfile in the root avec my projet: FROM php:7.4-apache ENV APACHE_DOCUMENT_ROOT /var/www/html/public RUN sed -ri -e…
IAI
  • 83
  • 1
  • 1
  • 4
1
vote
0 answers

After migrating pimcore 6.9 to 10.6 successfully, admin interface has router issue

After migrating pimcore 6.9 to 10.6 successfully, admin interface has router issue I have changed routing as per symfony flex document, But getting this error Also please help me to organize existing bundle after migrating to pimcore 10.6…
Thejaswini
  • 11
  • 2
1
vote
1 answer

PHPUNIT Test Coverage disable html report

can I disable generate html files? bin/phpunit --colors=never --log-junit /tmp/tests_report.xml --coverage-text but html files still generate
Dev devovs
  • 99
  • 5
1
vote
1 answer

Not redirecting to User/Admin page after logging in. (Symfony 5.4)

public function onAuthenticationSuccess(Request $request, TokenInterface $token, string $firewallName): ?Response { if ($targetPath = $this->getTargetPath($request->getSession(), $firewallName)) { return new…
1
vote
1 answer

symfony Cannot find the entity manager for class "App\Entity\User"

After upgrade to last symfony 5.4 update, I remove user entity/repository to restart and remove all deprecations. To recreate User entity/repository, I run : php bin/console make:user --is-entity --with-password # it returns In DoctrineHelper.php…
bcag2
  • 1,988
  • 1
  • 17
  • 31
1
vote
1 answer

Cannot autowire argument $user, it references class but no such service exists after removing sensio/framework-extra-bundle

Symfony 5.4, php7.4. After removing sensio/framework-extra-bundle, as it is abandoned, all routes which contain ids returns an error message: Cannot autowire argument $user of "App\Controller\Back\UserController::read()": it references class…
svitb
  • 11
  • 1
1
vote
0 answers

Dynamically add roles on Symfony 5.4

I'm working on a PHP application where there are two levels of authorizations. On the first and classic level : the user logs in the application, the authentication system sets his roles and registers them in the auth token all right. Let's say out…
ChristopheBrun
  • 1,237
  • 7
  • 22
1
vote
0 answers

The "HEADER_X_FORWARDED_ALL" constant is deprecated since Symfony 5.2

I have just upgraded to Symfony 5.4 and i'm hitting a deprecation notice on my usage of the HEADER_X_FORWARDED_ALL constant. trigger_deprecation('symfony/http-foundation', '5.2', 'The "HEADER_X_FORWARDED_ALL" constant is deprecated, use either…
crmpicco
  • 16,605
  • 26
  • 134
  • 210
1
vote
1 answer

Custom Authenticator not Called in Symfony 5.4

Currently I am developing Symfony application where I have multiple login form. For the login form I created the firewall and also created custom authenticator. New created custom authenticator added into the services.yaml file as…
shukla147
  • 74
  • 1
  • 8
1
vote
1 answer

Symfony 5.4 - how to filter/sanitize/validate request parameter in Rest API action

I am fairly new to Symfony 5.4 and recently created my first API using that version For my specific API endpoint one of the parameters is an array of IDs. I need to validate this array in the following way: make sure that this IS an array; make…
Denis
  • 322
  • 1
  • 4
  • 15
1
vote
0 answers

Symfony submit button value

I search on the web, i dont find how can I get the value of the submitType in Symfony on controller after submitted in the case where we have more button SubmitType. Have you any idea ? Thank
welson
  • 119
  • 1
  • 10
1
2 3 4 5 6