先注释掉 AppKernel.PHP
中的第三方 Bundle
注册项composer update -vvv
PHP bin/console doctrine:database:create
如果涉及到 doctrine-fixtures-bundle 相关内容导致无法composer update
,先在 composer.json
中注释掉 doctrine-fixtures-bundle
、data-fixtures
相关内容,然后执行:PHP bin/console doctrine:fixtures:load
FOS/UserBundle 创建新用户:PHP bin/console fos:user:create user1 user1@abc.com user_password