您请求了一个不存在的参数 "faker.populate.class"
You have requested a non-existent parameter "faker.populate.class"
安装 willdurand/BazingaFakerBundle
with composer 后出现此错误:
ParameterNotFoundException
You have requested a non-existent parameter "faker.populate.class"
我已将此添加到我的 config_dev.yml 文件中:
bazinga_faker:
orm: doctrine
locale: fr_FR
entities:
AppBundle\Entity\User:
number: 20
我正在使用 Symfony 3.4。
我是不是忘记配置了什么?谢谢
编辑:我的 composer.json
"require": {
"php": ">=5.5.9",
"doctrine/doctrine-bundle": "^1.6",
"doctrine/doctrine-fixtures-bundle": "^3.0",
"doctrine/orm": "^2.5",
"friendsofsymfony/user-bundle": "~2.0",
"incenteev/composer-parameter-handler": "^2.0",
"knplabs/knp-paginator-bundle": "^2.7",
"lexik/form-filter-bundle": "^5.0",
"sensio/distribution-bundle": "^5.0.19",
"sensio/framework-extra-bundle": "^5.0.0",
"symfony/monolog-bundle": "^3.1.0",
"symfony/polyfill-apcu": "^1.0",
"symfony/swiftmailer-bundle": "^2.6.4",
"symfony/symfony": "3.4.*",
"symfony/templating": "^4.0",
"twig/twig": "^1.0||^2.0",
"willdurand/faker-bundle": "^1.4"
},
"require-dev": {
"pugx/generator-bundle": "2.4.*",
"sensio/generator-bundle": "^3.0",
"symfony/phpunit-bridge": "^3.0"
},
安装 willdurand/BazingaFakerBundle
with composer 后出现此错误:
ParameterNotFoundException You have requested a non-existent parameter "faker.populate.class"
我已将此添加到我的 config_dev.yml 文件中:
bazinga_faker:
orm: doctrine
locale: fr_FR
entities:
AppBundle\Entity\User:
number: 20
我正在使用 Symfony 3.4。
我是不是忘记配置了什么?谢谢
编辑:我的 composer.json
"require": { "php": ">=5.5.9", "doctrine/doctrine-bundle": "^1.6", "doctrine/doctrine-fixtures-bundle": "^3.0", "doctrine/orm": "^2.5", "friendsofsymfony/user-bundle": "~2.0", "incenteev/composer-parameter-handler": "^2.0", "knplabs/knp-paginator-bundle": "^2.7", "lexik/form-filter-bundle": "^5.0", "sensio/distribution-bundle": "^5.0.19", "sensio/framework-extra-bundle": "^5.0.0", "symfony/monolog-bundle": "^3.1.0", "symfony/polyfill-apcu": "^1.0", "symfony/swiftmailer-bundle": "^2.6.4", "symfony/symfony": "3.4.*", "symfony/templating": "^4.0", "twig/twig": "^1.0||^2.0", "willdurand/faker-bundle": "^1.4" }, "require-dev": { "pugx/generator-bundle": "2.4.*", "sensio/generator-bundle": "^3.0", "symfony/phpunit-bridge": "^3.0" },