在 Symfony3 中使用 phpdocumentor

using phpdocumentor with Symfony3

我想使用 phpDocumentor with Symfony3. since they are not compatable with eachother as explained here 我已经按照推荐使用 pear 安装了 phpDocumentor。

我的buidl.xml是这样叫的

<target name="phpdoc" description="Generate API documentation using PHPDocumentor">
    <exec logoutput="true" command="/usr/bin/phpdoc -d ${source} -t ${basedir}/build/api" />
</target>

当我 运行 $ phing

我收到以下错误。

MyProject > phpdoc:

 [exec] PHP Warning:  require_once(/home/username/workspace/MyProject/vendor/dompdf/dompdf/dompdf_config.inc.php): failed to open stream: No such file or directory in /usr/share/php/phpDocumentor/src/phpDocumentor/Bootstrap.php on line 178

我的 vendor/ 目录中没有 dompdf/ 文件夹,因为它不是使用 composer

安装的

还有什么我可以用的吗? 有没有办法阻止 phpdoc 寻找 composer.json 文件并使用项目的 vendor 目录?

这可能是一个错误。目前,PEAR 和 Composer 安装可能不可靠。开发团队建议使用 PHAR,至少目前是这样 -- https://github.com/phpDocumentor/phpDocumentor2/issues/1859