N
N
nemovalex2020-04-17 12:00:32
symfony
nemovalex, 2020-04-17 12:00:32

Symfony 4.4 fos_user bundle configuration error?

I'm trying to install the FOSUserBundle integration from the Sonata Project according to the official documentation, I also tried different guides but always the same error: There is no extension able to load the configuration for "fos_user".
The documentation says to create a config/packages/fos_user.yaml file with the following content:

fos_user:
  db_driver: orm
  firewall_name: main
  user_class: App\Entity\User
  registration:
    confirmation:
      enabled: false
  from_email:
    address: '%env(MAILER_USER_ADDRESS)%'
    sender_name: '%env(MAILER_USER_NAME)%'
  service:
    user_manager: sonata.user.orm.user_manager
    mailer: 'fos_user.mailer.noop'
  group:
    group_class:   App\Entity\Group
    group_manager: sonata.user.orm.group_manager

But after creating the file, the error "There is no extension able to load the configuration for "fos_user" Looked at namespace: "fos_user" and others. What is the error?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question