我正在尝试从以下位置配置捆绑包:https://symfony.com/doc/master/bundles/DoctrineFixturesBundle/index.html https://symfony.com/doc/master/bundles/DoctrineFixturesBundle/index.html
当我尝试运行命令时:
$ php bin/console doctrine:fixtures:load
出现错误:
在 LoadDataFixturesDoctrineCommand.php 第 95 行中:
找不到任何要加载的固定装置服务。
您需要更新(app/config/services.yml)
services:
resource: '../../src/DataFixtures/*'
https://symfony.com/doc/master/bundles/DoctrineFixturesBundle/index.html https://symfony.com/doc/master/bundles/DoctrineFixturesBundle/index.html
其他问题在上面的教程中
// src/DataFixtures/AppFixtures.php
namespace App\DataFixtures;
名称空间应该是:
namespace DataFixtures;
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)