我刚刚与供应商下载了symfony2(sf 2.0.12),当我转到
http://foo.localhost/config.php我收到此消息:
Welcome! Welcome to your new Symfony project. This script will guide you through the basic configuration of your project. You can also do the same by editing the ‘app/config/ parameters.ini’ file directly.
- Configure your Symfony Application online
- Bypass configuration and go to the Welcome page
- Re-check configuration
然后,我单击“配置您的Symfony ..”,我得到了:
InvalidConfigurationException: The child node "db_driver" at path "fos_user" must be configured.
对你来说一样吗?
编辑:
此外,appKernel或自动加载文件中以及供应商文件夹中都没有关于FOSUserBundle的任何信息。
无论如何,我将以下行添加到了app/config/config.yml文件中:
fos_user:
db_driver: orm
firewall_name: main
但错误是相同的。
最佳答案
万一其他人需要这个...
我必须在没有FOSUserBundle的情况下在Symfony安装上运行“composer update”。然后使用添加到我的composer.json文件中的FOSUserBundle再次执行此操作。
关于symfony - 只是尝试安装/配置symfony2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9789445/