【问题标题】:Symfony 4 error where cache:clear or composer updateSymfony 4 错误,其中缓存:清除或作曲家更新
【发布时间】:2021-04-12 14:49:49
【问题描述】:

当我运行 composer updatebin/console cache:clear 时,出现以下问题:

执行脚本缓存:清除[KO]

脚本缓存:清除返回错误代码 1

在 ArrayNode.php 第 331 行:

无法识别的选项“dir_name, namespace”下 “教义迁移”。艾娃!!不可用的选项是 “all_or_nothing”、“check_database_platform”、“连接!!”、 “custom_template”、“em”、“工厂”、“迁移”、 “迁移路径”,!! “组织迁移”,“服务”, “存储”。

脚本 @auto-scripts 是通过 post-update-cmd 调用的

【问题讨论】:

    标签: caching symfony4


    【解决方案1】:

    我通过更改解决了这个问题: 我编辑了学说-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:
            'DoctrineMigrations': '%kernel.project_dir%/src/Migrations'
    

    参考: https://github.com/doctrine/DoctrineMigrationsBundle/blob/3.1.x/UPGRADE.md

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-07-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-07
      • 2013-06-01
      • 2016-12-19
      相关资源
      最近更新 更多