mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03: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>
NelmioApiDocBundle
The NelmioApiDocBundle bundle allows you to generate a decent documentation for your APIs.
Migrate from 2.x to 3.0
To migrate from 2.x to 3.0, follow our guide.
Installation
Open a command console, enter your project directory and execute the following command to download the latest version of this bundle:
composer require nelmio/api-doc-bundle
Documentation
Read the documentation on symfony.com
Contributing
See CONTRIBUTING file.
Running the Tests
Install the Composer dependencies:
git clone https://github.com/nelmio/NelmioApiDocBundle.git
cd NelmioApiDocBundle
git checkout 3.x
composer update
Then run the test suite:
./phpunit
License
This bundle is released under the MIT license.
Description
Languages
PHP
86.4%
Twig
11%
CSS
2.5%