【发布时间】:2014-09-04 22:49:55
【问题描述】:
我正在尝试在我的应用中安装 APIGILITY。我已按照本教程进行操作:
https://apigility.org/documentation/recipes/apigility-in-an-existing-zf2-application
当我尝试访问 apigility 管理员:www.myapp.dev/apigility 时,我收到 “请求的 URL 无法通过路由匹配” 错误。
我的配置如下:
'modules' => array(
'DoctrineModule',
'DoctrineORMModule',
'ZfcRbac', //Keep this at the top
'Application', //The applications main functions run from this module
//APIGILITY
'ZF\Apigility',
'ZF\Apigility\Provider',
'AssetManager',
'ZF\ApiProblem',
'ZF\MvcAuth',
'ZF\OAuth2',
'ZF\Hal',
'ZF\ContentNegotiation',
'ZF\ContentValidation',
'ZF\Rest',
'ZF\Rpc',
'ZF\Versioning',
'ZF\DevelopmentMode',
'ZF\Apigility\Admin',
'ZF\Configuration',
我已启用开发者模式。
通常,如果路由存在并且 ZfcRbac 阻塞了该路由,我会被重定向。在这种情况下,当路由不可访问时,我会收到错误消息。
有没有简单的测试方法?
【问题讨论】:
标签: zend-framework2 laminas-api-tools