This commit is contained in:
Evan Villemez 2012-09-10 09:46:52 -04:00
parent 29c3798124
commit a8b656f3a0
2 changed files with 2 additions and 1 deletions

View File

@ -162,6 +162,7 @@ class JmsMetadataParser implements ParserInterface
{ {
$ref = new \ReflectionClass($className); $ref = new \ReflectionClass($className);
$extracted = $this->commentExtractor->getDocCommentText($ref->getProperty($propertyName)); $extracted = $this->commentExtractor->getDocCommentText($ref->getProperty($propertyName));
return !empty($extracted) ? $extracted : "No description."; return !empty($extracted) ? $extracted : "No description.";
} }

View File

@ -12,7 +12,7 @@
<services> <services>
<service id='nelmio_api_doc.doc_comment_extractor' class='%nelmio_api_doc.doc_comment_extractor.class%' /> <service id='nelmio_api_doc.doc_comment_extractor' class='%nelmio_api_doc.doc_comment_extractor.class%' />
<service id="nelmio_api_doc.extractor.api_doc_extractor" class="%nelmio_api_doc.extractor.api_doc_extractor.class%"> <service id="nelmio_api_doc.extractor.api_doc_extractor" class="%nelmio_api_doc.extractor.api_doc_extractor.class%">
<argument type="service" id="service_container"/> <argument type="service" id="service_container"/>
<argument type="service" id="router" /> <argument type="service" id="router" />