14 Commits

Author SHA1 Message Date
Guilhem Niot
fd45120d5c
Catch more precise exception in DocumentationController (#2027)
* Catch more precise exception in DocumentationController

* cs

* Fix tests
2022-09-03 13:18:46 +02:00
Guilhem Niot
a39317726a CS 2022-03-21 17:04:37 +01:00
Alexey Alshenetsky
7de49bb4a8
Add missing null check to ControllerReflector::getReflectionMethod (#1918)
* add null check

https://github.com/nelmio/NelmioApiDocBundle/issues/1909

* less code is better

* add tests for ControllerReflection::getReflectionMethod()

* lint fix

* style_ci fixes

Co-authored-by: Alexey <alshenestky@icloud.com>
2021-12-12 01:32:51 +01:00
Alexey Alshenetsky
14383f4ee5
Add support for zircore/swagger-php 4.0 (#1916)
* add zircore/swagger-php v4 to composer.json

* fix incompatibilities

* add compatibility with 3.2

* Apply fixes from StyleCI

* mark SetsContextTrait as internal

* Bump php version

Co-authored-by: Alexey <alshenestky@icloud.com>
Co-authored-by: Alexey Alshenetsky <alshenetsky@users.noreply.github.com>
Co-authored-by: Guilhem Niot <guilhem@gniot.fr>
2021-12-11 14:39:04 +01:00
Adir Kuhn
71f0cfddcb
Supports reflection for routes configured in PHP files. (#1701)
By default the PHP configuration routes returns an array with the controller name and method, since the reflection class was typed for string only this was causing an exception when the user was not using YAML or XML configuration.
This changes removes the string type hint from the method and checks if it's an array or string to do the reflection.

Co-authored-by: Adir Kuhn <adir@123inkt.nl>
2020-08-11 16:46:05 +02:00
Guilhem Niot
edf6b70175 Apply StyleCI fixes 2020-08-06 10:26:59 +02:00
Guilhem Niot
f596adfb4d
Merge pull request #1556 from maxhelias/reflection-method
Use getReflectionMethod instead of getReflactionClassAndMethod
2019-11-21 18:18:16 +01:00
Maxime Helias
aa1432f35c Use getReflectionMethod instead of getReflactionClassAndMethod 2019-11-21 18:14:59 +01:00
Maxime Helias
1464865de1 Remove deprecated notice about controller_name_converter 2019-11-19 17:23:12 +01:00
DemigodCode
50cf155855 Fix Controllers used as Services in Symfony >=4.1 (#1530)
* Symfony >4.1 ControllerService support

* Add usage

* StyleCI Fix

* Fix unittests deprecation for Symfony 4.3

* missing quote

* Revert "missing quote"

This reverts commit 25ca0a5b0b0ab01c7de52ae10b185ffeead38880.

* Revert "Fix unittests deprecation for Symfony 4.3"

This reverts commit bcdb51483d6052037820f1c669ee91a7099aced4.

* Test another deprecation fix

* Revert "Test another deprecation fix"

This reverts commit d9bc1b604e4ebec7789316472fd656ce30ee9e57.

* Syntax not removed in sf <4.1 only deprecated
2019-07-09 11:59:30 +02:00
babaorum
dcfa5e23e5 add a way to filter areas on route by annotation 2019-02-05 22:43:18 +01:00
David Buchmann
75cf1201ed Apply fixes from StyleCI 2017-12-22 17:42:18 +00:00
Guilhem N
b1d95d966d
[SwaggerPhp] Only parse controllers 2017-01-25 18:44:57 +01:00
Guilhem N
1a17a5f5da
Allow implicit operations with SwaggerPhp annotations 2017-01-08 12:12:43 +01:00