您已请求不存在的参数“faker.populate.class”

时间:2018-04-12 12:19:29

标签: symfony symfony-3.4

在使用composer安装willdurand/BazingaFakerBundle后出现此错误:

  

ParameterNotFoundException   您已请求不存在的参数“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"
},

1 个答案:

答案 0 :(得分:2)

该捆绑,从1.3&仍有1.4版本的类名参数存在问题,如issue #48PR #49中所述。