我想为我的 Restful API 构建一个带有 swagger 的 UI 文档。这是该https://symfony.com/doc/master/bundles/NelmioApiDocBundle/index.html的官方文档,
但我收到了这个错误Unrecognized option "areas" under "nelmio_api_doc"
#routing.yml
app.swagger_ui:
path: vyndteam/api/doc/{areas}
methods: GET
defaults: { _controller: nelmio_api_doc.controller.swagger_ui }
#config.yml
nelmio_api_doc:
areas:
default:
path_patterns: [^/api]
host_patterns: [api\.]
business:
path_patterns: [^/business]
admin:
path_paterns: [^/admin]
有什么建议么?