PHP7 Symfony4 Phpdocumentor

时间:2018-11-22 08:43:55

标签: symfony4 phpdoc

是否可以在上方/标题下使用PhpDocumentor? 当我尝试使用作曲家安装它时,会显示以下信息:

$ composer require --dev phpdocumentor/phpdocumentor dev-master
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "4.1.*"
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for phpdocumentor/phpdocumentor dev-master -> satisfiable by phpdocumentor/phpdocumentor[dev-master].
    - phpdocumentor/phpdocumentor dev-master requires symfony/config ~2.3 -> no matching package found.

那么该怎么做或如何记录代码?

1 个答案:

答案 0 :(得分:1)

由于phpDocumentor内部要求不兼容,因此Composer无法同时安装它和更新的Symfony版本。因此,phpDocumentor团队建议使用其PHAR,而不是在Composer管理的安装中使用它。