phpDocumentor がコード ブロックを利用するようにコードを構成する方法を理解するのに苦労しています。
/**
* GET -- Book, either filtered by id or a full list.
*
* @param SlimApplication $app The application object instance.
* @param integer $id The id of the book
*/
$callbackFunction = function($id) use ($app)
{
//some functionality here.
};
$app->get('/books(/:id)', $callbackFunction );
use
を使用できるように、おそらくインラインステートメントを引き続き使用する必要があります$app
。
誰にも提案はありますか?