LoginSignup
3
3

More than 5 years have passed since last update.

ApiGen.phpでエラーが出るときの回避方法

Posted at

PHPのドキュメンテーションツールとしてAPiGenを使い始めました。

公式ページではPEARのインストール方法が書いてあってウッってなったんですが、Githubのページを見るとComposerもサポートしている様子。

でComposerからインストールして実行。

$ ./vender/bin/apigen.php --source=/path/to/source --destination=/path/to/dest

すると、

Call to undefined method: Latte\Template::getFile()

というエラーが出て生成の途中で止まってしまいます。
どうやらnetteが古いらしく、netteもrequire-devに追記して新しいものを使うようにすると上手く行きます。

{
    "require-dev": {
       "apigen/apigen": "2.*",
       "nette/nette": "~2.1.3"
    }
}

issusesにも上がってた。。。

このまんまです。
しかし、neon記法がよくわからない。。。

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3