我尝试在 Windows PC 上将 dredd 与 symfony 一起使用。
我下一步:我在 symfony 项目中创建文件夹 dredd
应用程序dredd src供应商等
在 symfony composer.json 我添加
"ddelnano/dredd-hooks-php":"dev"
下一步,我创建这个 dredd.yml
dry-run: null
hookfiles: ./hooks.php
language: php
sandbox: false
server: null
server-wait: 3
init: false
custom:
apiaryApiKey: 'apikey '
apiaryApiName: 'apiname'
names: false
only: []
reporter: apiary
output: []
header: []
sorted: false
user: user:pass
inline-errors: true
details: true
method: []
color: true
level: info
timestamp: true
silent: false
path: []
hooks-worker-timeout: 5000
hooks-worker-connect-timeout: 1500
hooks-worker-connect-retry: 500
hooks-worker-after-connect-wait: 100
hooks-worker-term-timeout: 5000
hooks-worker-term-retry: 500
hooks-worker-handler-host: localhost
hooks-worker-handler-port: 61321
config: ./dredd.yml
blueprint: test.apib
endpoint: 'someendpoint'
and another needed file.
并清除响应
错误:找不到 PHP 挂钩处理程序命令:dredd-hooks-php 通过运行安装 php 挂钩处理程序:$ composer require ddelnano/dredd-hooks-php --dev
为什么它不起作用?我究竟做错了什么?
PS对不起我的英语。