0

我想将phpDocumentor与 Symfony3 一起使用。因为它们彼此不兼容,如here所述,我已经安装了 phpDocumentor 使用 pear 作为推荐。

我的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

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

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

4

1 回答 1

0

那很可能是一个错误。现在,PEAR 和 Composer 安装可能不可靠。开发团队推荐使用 PHAR,至少目前是这样——https: //github.com/phpDocumentor/phpDocumentor2/issues/1859

于 2017-07-17T19:57:15.923 回答