Questions tagged [symfony5.4]
84 questions
0
votes
2 answers
Stimulus build html element from rest API
Hello I have a stimulus code into my symfony project.
This code is calling a rest API which taking around 3 seconds to provide the response. This rest api return JSON.
This is my code :
import {Controller} from "@hotwired/stimulus";
import axios…

Fpasquer
- 381
- 3
- 15
0
votes
1 answer
Symfony 5.4 with OAuth Keycloak connect Error must implement AuthenticatorInterface
I'm trying to implement an OAuth connection with Keycloak on Symfony 5.4, when I display a page of my application, all works fine, I have the keycloak login page, but after validate, I have this error :
Argument 1 passed to…

Adrien Dubois
- 48
- 7
0
votes
0 answers
Doctrine Relationship with 3 tables on a pivot table
I am new with Symfony. I have 3 Tables (user, group, role), for these tables I created an entity class for each one. Here are some conditions to meet:
Every User could be in several groups
Every group can have several roles
Each user can have many…

ofaruk
- 72
- 6
0
votes
1 answer
Where is the Email stored until it was send (Symfony Mailer)
When sending an Email in Symphony Mailer there needs to be a worker consumes it, before it is send. Therefore the files have to be stored in some place, but I cant find out where. I searched in my project, but i couldn't find anything in any…

Ronexas
- 17
- 2
0
votes
2 answers
How to autowire 2 symfony services, which use the same interface and addtional arguments
I have two services, which both use the same interface and one is injected in the other.
With this configuration in the service.yaml everything worked well:
# fix autowiring for 2 services using the same interface
App\Domain\ListService: ~
…

Calamity Jane
- 2,189
- 5
- 36
- 68
0
votes
0 answers
Database Migration created by Symfony 5.4 with maker-bundle adds deprecated comment
In a Symfony 5.4 project using symfony/maker-bundle v1.43.0 I experience this issue that the make:migration command adds a deprecated comment to a row structure that actualy causes the DB environment to fail with
"Unknown column type "json_array"…

user3440145
- 793
- 10
- 34
0
votes
0 answers
Argument 1 passed to App\\Service\\SecurityService::__construct() must be an instance of League\\OAuth2\\Server\\AuthorizationServer
I used an AuthorizationServer of League\OAuth2\Server\AuthorizationServer in my constructor and added in
Service.yaml
App\Service\SecurityService:
arguments: ['@form.server_params', '@service_container']
But showing an error of Argument 1…

alen
- 1
0
votes
1 answer
Symfony 5.4 HttpClient setting curl options for PayPal Checkout integration
I am implementing PayPal Checkout (https://developer.paypal.com/docs/checkout/standard/integrate/) in a Symfony 5.4 project.
I am kind of stuck retrieving an access token by sending clientId and clientSecret to the PayPal REST API…

user3440145
- 793
- 10
- 34
0
votes
1 answer
Not able to customize Access Denied exception on Symfony 5.4
I am making a project in Symfony 5 where there are multiple roles with different privileges. The problem is that when a user tries to log in a zone where they don't have enough privileges (e.g. a USER in an ADMIN only zone) it throws an Access…

Ben
- 1
0
votes
2 answers
Update column in existing table in Symfony 5.4
[I just want to update column in my existing entity class, but when I migrate to database using php bin/console ..., It's always shows table already exists or column could not be repeated ]
What should I do with this problem?

天才div
- 1
- 1
0
votes
1 answer
The service "security.command.debug_firewall" has a dependency on a non-existent service
I'm using Symfony 5.4.10 for my e-commerce site. while generating the authentification form, after entering php bin/console make:auth all necessary files have been generated. But after that, i have this error while executing the login form : The…

syn
- 1
- 1
0
votes
1 answer
How to show input and output exemple with nelmio-api-bundle and php8.1
I'm currently trying to make an API doc page thanks to nelmio-api-bundle. I only have one route which is a POST route. I'm receiving a JSON in the body of the request and I'm using the Serializer from symfony to deserialize it in a DTO. I'm also…

jeff
- 35
- 6
0
votes
0 answers
Symfony does not open a page
I have a page (archives) that works locally. But not on the server. In the logs I get the following message:
AH01071: Got error 'PHP message: [info] Matched route "app_archive".
PHP message: [debug] Read existing security token from the…

Luu
- 1
- 2
0
votes
0 answers
Auto login to Symfony 5 from another Symfony 5 website?
I work on two sites that I created with symfony 5.4.
On the first site I have a list of users with their login credentials (firstname and lastname, no password needed).
When I click on a link, I would like to open the second site in a new tab and be…

team.dev
- 1
- 1
-1
votes
2 answers
composer update is not downloading anything
In a Symfony 5.4 project calling
composer update
stops (or is not proceeding) when the downloading part should process.
It lists all the things to download like this
Downloading php-http/discovery (1.19.1)
Downloading symfony/flex…

user3440145
- 793
- 10
- 34