146 Commits

Author SHA1 Message Date
Alessandro Tagliapietra
2acf49e9ee Added TODO comment to the workaround 2012-11-19 11:15:28 +01:00
Alessandro Tagliapietra
b3d628a31b Exception handling on unsupported fields types
Since the entity (and maybe others) form field type breaks the doc generations, I've added a try{} catch{} exception handler when you try to a compatible field type in the formParser().

It's a workaround for issue https://github.com/nelmio/NelmioApiDocBundle/issues/94.

Later we can add a better support for other types of fields.
2012-11-19 11:09:26 +01:00
Jordi Boggiano
9c7577f7c2 Merge remote-tracking branch 'docteurklein/virtual_property_support' 2012-10-24 15:38:42 +02:00
Klein Florian
197cdfc989 fix cs 2012-10-24 15:36:41 +02:00
Klein Florian
d129db9a53 add virtual property support for jms parser 2012-10-24 15:09:36 +02:00
Klein Florian
db4a375992 avoid infinite recursion when parsing jms metadata 2012-10-24 10:29:08 +02:00
Klein Florian
df29283a7f fix cs 2012-10-05 09:36:43 +02:00
Klein Florian
011c59b4d7 do not support form types with required options 2012-10-04 10:37:12 +02:00
Klein Florian
734dd0da7e fix bad variable name 2012-10-03 17:06:56 +02:00
Klein Florian
f9d4fb90cd allow to pass classes wich have constructor arguments 2012-10-03 16:39:07 +02:00
Klein Florian
5c52352eb5 allow to pass classes wich have constructor arguments 2012-10-03 16:35:56 +02:00
Evan Villemez
a8b656f3a0 fixed cs 2012-09-10 09:46:52 -04:00
Evan Villemez
29c3798124 implemented nested parameter handling in AbstractFormatter, updated MarkdownFormatter and HtmlFormatter to use it 2012-09-10 09:46:02 -04:00
Evan Villemez
8c3466f6ed abstracted docblock comment extraction, implemented in JmsMetadataParser to get parameter descriptions 2012-08-31 14:57:42 -04:00
Evan Villemez
0af506f151 resolved conflicts 2012-08-28 14:50:40 -04:00
Evan Villemez
504d5125f9 finished up, tests passing, fixed cs 2012-08-27 13:25:03 -04:00
Evan Villemez
ea3fb69627 fixed cs 2012-08-27 12:25:18 -04:00
Evan Villemez
01fce41a0e more accurate reporting of arrays and their types 2012-08-27 12:23:23 -04:00
Evan Villemez
d4fe982300 rebased, fixed cs 2012-08-27 12:23:23 -04:00
Evan Villemez
9b94ae4b2c fixed cs 2012-08-27 12:23:23 -04:00
Evan Villemez
185d0e588b updated JMSMetadataParser to support nested models 2012-08-27 12:23:22 -04:00
Evan Villemez
be3cbb5ba3 fixed potential error in JmsMetadataParser::supports 2012-08-27 12:11:43 -04:00
Evan Villemez
1cf7e18d61 fixed README, other minor things 2012-08-08 10:21:56 -04:00
Evan Villemez
68767f6c72 fixed cs 2012-08-07 21:57:36 -04:00
Evan Villemez
149f282481 tests passing with JmsMetadataParser, but work still to do on required and description properties 2012-08-07 21:47:33 -04:00
Evan Villemez
b71bc8bf3f started on implementing JmsMetadataParser and tests 2012-08-07 17:50:58 -04:00
William Durand
4b69e1149a Merge pull request #53 from evillemez/parser_interface
Implemented `ParserInterface`
2012-08-06 03:12:17 -07:00
William DURAND
83c91a3d9d Add support for nested form types 2012-07-27 10:33:06 +02:00
William DURAND
15a4558277 Add country type 2012-07-27 10:33:06 +02:00
Evan Villemez
89f2044581 fixed compiler pass, updated README 2012-07-24 14:39:43 -04:00
Evan Villemez
b9e8d61082 changed inputClass to input, refactored method and class names accordingly, fixed cs in several places 2012-07-23 15:44:37 -04:00
Evan Villemez
b2a2426f76 fixed check for wrong class in FormTypeParser, fixed CS in ParserInterface 2012-07-23 13:27:58 -04:00
Evan Villemez
06e3a2256b added a ParserInterface, refactored how Parsers are registered in the ApiDocExtractor, changed formType to inputClass in ApiDocExtractor 2012-07-23 12:54:56 -04:00
William DURAND
f8ab93a167 Fix FormTypeParser to reflect last Symfony2 changes
See: cd7835d8d2 (L5L97)
2012-07-14 14:12:12 +02:00
Christophe Coevoet
fd8ee2679a Added the support of form types defined as services 2012-06-21 00:11:32 +02:00
Victor Berchet
fd00844dc6 [Form] Update to sf2.1 2012-05-27 22:56:01 +02:00
Christophe Coevoet
04b075736f Applied some php-cs-fixer magic 2012-05-23 00:42:59 +02:00
Christophe Coevoet
378f21ec10 Fixed the parsing of formed defined by creating the FormBuilder directly 2012-05-23 00:20:03 +02:00
Jordi Boggiano
12f65fed4f Fallback to text when no type is present 2012-04-13 14:13:15 +02:00
William DURAND
8b018e6de5 Added a way to comment each field of a Form Type 2012-04-13 12:17:11 +02:00
Jordi Boggiano
a74520057a Add license 2012-04-13 11:03:05 +02:00
William DURAND
f172e74db7 Renamed the bundle 2012-04-12 18:37:42 +02:00
William DURAND
6285ecebb0 [ApiBundle] Added more comments 2012-04-12 17:48:21 +02:00
William DURAND
bfaa0c6adf Added a way to group API methods by 'resource' name 2012-04-12 17:24:38 +02:00
William DURAND
c4c7d14354 [ApiBundle] Added a controller to get a complete documentation
* Added an Extractor to get the documentation from all annotated
controllers
* Refactored some parts (command, event listener, ...)
2012-04-12 12:50:20 +02:00
William DURAND
0dc8883e09 Introduced ApiBundle 2012-04-11 20:00:21 +02:00