10 Commits

Author SHA1 Message Date
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