脚本 cache:clear 返回错误代码 1

Script cache:clear returned with error code 1

我尝试运行命令“composer update”来更新 Symfony 4.3。更新了 107 个包。然后在脚本的末尾运行命令“cache:clear”时出现错误

Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 1
!!
!!  In ArrayNode.php line 327:
!!
!!    Unrecognized options "dir_name, namespace" under "doctrine_migrations". Ava
!!    ilable options are "all_or_nothing", "check_database_platform", "connection
!!    ", "custom_template", "em", "factories", "migrations", "migrations_paths",
!!    "organize_migrations", "services", "storage".
!!
!!
!!
Script @auto-scripts was called via post-update-cmd

我做了一些研究,发现我必须更新 Doctrine_Migrations 配置文件 config/packages/doctrine_migrations.yaml :

来自

doctrine_migrations:
    dir_name: '%kernel.project_dir%/src/Migrations'
    # namespace is arbitrary but should be different from App\Migrations
    # as migrations classes should NOT be autoloaded
    namespace: DoctrineMigrations

doctrine_migrations:
  migrations_paths:
    "App\Migrations": "src/Migrations"