首页 > 解决方案 > Symfony2 重新组织配置文件:parameters.dist.yml 问题

问题描述

我已按照文档重新组织 app/config 目录中的文件。现在我有 config/common(带有配置、参数、parameters.dist、路由、安全和服务文件)以及特定目录中每个环境的文件:app/config/dev 和 app/config/prod。

但是现在,当我尝试发送“composer -n install”来更新自动加载时,我遇到了这个错误:

[InvalidArgumentException]
The dist file "app/config/parameters.yml.dist" does not exist.
Check your dist-file config or create it.

我知道这是一个配置问题,Symfony 在 app/config 中搜索我的 dist 文件,如何将其重定向到 app/config/common ?

我不知道错误写入的“dist-file config”在哪里。

谢谢!

标签: symfonysymfony-2.8

解决方案


成立 !它在 composer.json 中:

在“extra”、“incenteev-parameters”下,我更改了“file”的值。


推荐阅读