Questions tagged [symfony6]

Use this tag for questions addressing particular features of the PHP framework Symfony in version 6. Otherwise use only the general [symfony] tag plus the language tag [php].

Symfony is a framework for web and CLI-applications built on top of a catalog of Symfony components. It is free software released under the MIT license. The project's homepage is symfony.com.

Symfony 6 was released in November 2021 and includes several changes compared to its predecessor. However there are no new features compared to version 5.4.

429 questions
-2
votes
1 answer

"requirements could not be resolved to an installable set of packages" when I try to create a web app symfony 6 project

When I try to create a web app symfony 6 project, I have this error message :"Your requirements could not be resolved to an installable set of packages" and dependencies seems not to be installed (Lot of folders in my project are…
Ludo
  • 1
  • 1
-2
votes
2 answers

How can i block a user account in symfony 6?

Im using symfony 6 and easyadmin 4. Im trying to figure out how to block a user account on my website but i can't find a solution. I tried to create a role named: ROLE_BLOCKED and then use a function like IsDenied in the controllers to block the…
yaboiii23
  • 29
  • 5
-2
votes
1 answer

Symfony cache:clear problem: No session available

The problem is very simple. The applications works as expected, no problems, sessions work, etc. But when I try to clear the cache: bin/console c:c // Clearing the cache for the dev environment with debug true …
-2
votes
1 answer

API PLATFORM "Unable to generate an IRI for an entity"

I have created an API using symfony 6 and I am doing the filters using api platform. I have 12 entities working perfectly but one is throwing me an error. This is the error when doing a GET request: Unable to generate an IRI for…
S.Marx
  • 977
  • 10
  • 14
-3
votes
2 answers

first step on symfony 6

I'm learning symfony 6 I wanted to create my first project but it didn't work. I have installed php8, symfony, composer, scoot, in their latest version. when I created the project with this command "symfony new my_project_directory --version="6.3."…
-3
votes
2 answers

Symfony6: Set/update/manipulate environment variables (APP_ENV) with PHP (bootstrap.php)

We are in the process of reworking a Symfony5 application to Symfony6. We have a special case where the environment APP_ENV is dependent on the hostname of the app. Accessing the same app via app1.domain.com and app2.domain.com should set the…
MVKS
  • 1
  • 1
1 2 3
28
29