symfony flex composer InvalidArgumentException

时间:2018-01-20 00:53:22

标签: php symfony symfony-flex

所以我借助这个命令下载了symfony 4

 composer create-project symfony/skeleton my-project

之后,从项目目录中我尝试使用命令

拉出symfony的flex profiler包
composer require profiler --dev

但作曲家有问题。就像它想要以标准方式拉下包装而不是利用symfony flex

enter image description here

更新:发布于https://github.com/symfony/flex/issues/306

1 个答案:

答案 0 :(得分:0)

在以下nicolas-grekas

中查看link的答案

您可以继续使用this link中的symfony容器,只需查找flex使用的别名。

在你的情况下,flex的twig是“symfony / twig-bundle”,运行composer req symfony / twig-bundle

salu2