-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Symfony FOSUserBundle versions: dev-master
Description of the problem including expected versus actual behavior:
When trying to install FOSUB in a Symfony Flex project, the assets:install commands fails, which prevents the bundle from being installed (see log).
I'm not sure what the best solution would be here... As far as I could see, there are no current solutions for interactive configuration via Flex's bundle autoconfiguration system.
However, most project rely on the doctrine ORM to store users, AFAIK.
Maybe a solution could be to provide a "dummy" driver that allows the default configuration to go through but prevents actually using the bundle until an actual driver has been configured? What do you think?
Steps to reproduce:
- Start a Symfony project using Symfony Flex
- composer require composer require friendsofsymfony/user-bundle
Provide logs (if relevant):
mlemoine@local ~/project $ composer require friendsofsymfony/user-bundle
Using version ^2.0@dev for friendsofsymfony/user-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 6 installs, 0 updates, 0 removals
- Installing symfony/templating (3.4.x-dev f333054): Downloading (100%)
- Installing symfony/options-resolver (3.4.x-dev c6db86e): Downloading (100%)
- Installing symfony/intl (3.4.x-dev fbdc2d8): Downloading (100%)
- Installing symfony/polyfill-intl-icu (dev-master d50e463): Downloading (100%)
- Installing symfony/form (3.4.x-dev f44a4a0): Downloading (100%)
- Installing friendsofsymfony/user-bundle (dev-master 039b826): Downloading (100%)
Detected auto-configuration settings for "friendsofsymfony/user-bundle"
Enabling the package as a Symfony bundle
Writing lock file
Generating autoload files
Executing script make cache-warmup [OK]
Executing script assets:install --symlink --relative %WEB_DIR% [KO]
[KO]
Script assets:install --symlink --relative %WEB_DIR% returned with error code 1
!!
!!
!!
!!
!! [Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
!!
!! The child node "db_driver" at path "fos_user" must be configured.
!!
!!
!!
!!
!!
Installation failed, reverting ./composer.json to its original content.