Skip to content

Ignore non reflectable methods#920

Closed
gpenverne wants to merge 972 commits intonelmio:masterfrom
gpenverne:fix/non-reflectable-method
Closed

Ignore non reflectable methods#920
gpenverne wants to merge 972 commits intonelmio:masterfrom
gpenverne:fix/non-reflectable-method

Conversation

@gpenverne
Copy link

When controller is generated dynamically by a factory , apidocbundle can't reflect method and throws exception.

jeskew and others added 30 commits September 26, 2014 14:19
Don't let empty arrays get passed through as defaults.
Update parser to convert empty array defaults to null
Fix parsing of filters, default values and base path in SwaggerFormatter
…s-for-put-requests

Fix no required parameters for PUT requests
Honor body format before uploading file type parameters
…Made sure that FieldErrors is not duplicated.
FOSRest integration: Form errors format
Display select to choose http method in sandbox
Fix the PhpDoc Handler for `@link` annotation and add tests
suggested change in #353 is not working
(avoid triggering warning on IDEs like PhpStorm
[doc] missing "sandbox:" in the authentication yaml examples
Update index.md

Remove unused variable. $arguments is now named $options
Francesco Abeni and others added 24 commits May 24, 2016 13:13
Fix wrapping of format table row
Links from index.rst to the other doc files
Fixed the links to some doc articles
Usage of OUTPUT_RAW to avoid javascript syntax error when dumping HTML
Add navigation index for resources
Allow filter descriptions to be used in conjunction with POST/PUT inp…
Key "statusCodes" for array with keys "method, uri, description, documentation, filters, requirements, parsedResponseMap, https, authentication, authenticationRoles, deprecated, id" does not exist in NelmioApiDocBundle::method.html.twig at line 182.

Sample:

 /**
     * Retrieves the list of categories (paginated) based on criteria.
     *
     * @apidoc(
     *  resource=true,
     *  output={"class"="Sonata\DatagridBundle\Pager\PagerInterface", "groups"={"sonata_api_read"}}
     * )
     *
     *
     * @QueryParam(name="page", requirements="\d+", default="1", description="Page for category list pagination")
     * @QueryParam(name="count", requirements="\d+", default="10", description="Number of categories by page")
     * @QueryParam(name="enabled", requirements="0|1", nullable=true, strict=true, description="Enabled/Disabled categories filter")
     * @QueryParam(name="context", requirements="\S+", nullable=true, strict=true, description="Context of categories")
     *
     * @view(serializerGroups="sonata_api_read", serializerEnableMaxDepthChecks=true)
     *
     * @param ParamFetcherInterface $paramFetcher
     *
     * @return PagerInterface
     */
Fix error: Key "statusCodes" for array with keys...
Fixed placeholder translations #889
$route = $annotation->getRoute();
$array[] = array('annotation' => $this->extractData($annotation, $route, $this->getReflectionMethod($route->getDefault('_controller'))));
$reflectionMethod = $this->getReflectionMethod($route->getDefault('_controller'));
if (null !== $reflectionMethod) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, check if method can be reflected.

@kbsali
Copy link

kbsali commented Oct 3, 2016

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.