swagger-bundle icon indicating copy to clipboard operation
swagger-bundle copied to clipboard

Controller auto-discovery

Open johnknl opened this issue 8 years ago • 0 comments

Right now one has to manually define controller DI config. With the mantra of "minimal additional config" in mind, controllers should be auto-discoverable.

It should be fairly easy to add the controllers to the container with "autowire: true", once you tell SwaggerBundle where to find them:

swagger:
  controller_directories: [ 'src/Controllers' ] # Optional, default

johnknl avatar Nov 10 '17 06:11 johnknl