symfony - 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”在哪里。
谢谢!
解决方案
成立 !它在 composer.json 中:
在“extra”、“incenteev-parameters”下,我更改了“file”的值。
推荐阅读
- php - 如何将WordPress功能代码移动到内容底部
- testing - 您可以运行一套套件但不运行某些测试吗?
- java - 具有自动化功能的 Resttemplate 发布方法不适用于交换方法
- python - 在 Keras(tf 后端)中在较大图像上训练滑动窗口模型
- json - 将指针转换为json解码器中的主要值
- r - R 包文档
- java - How to calculate the width of a string in justified JRTemplatePrintText?
- vb.net - 尝试更新数据库中的密码和用户名我得到操作员错误
- google-analytics - Google 跟踪代码管理器 - 在一个域中处理多个区域
- html - 类中的SVG动画类不起作用