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>
* 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