0
我嘗試在windows PC上使用symfony使用dredd。在Windows上使用dredd鉤子時出錯
我下一步: 我在symfony中poject創建文件夾的Dredd
symfony的composer.jsonapp dredd src vendor e.t.c
我添加
"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.
and dredd response
error: PHP hooks handler command not found: dredd-hooks-php Install php hooks handler by running: $ composer require ddelnano/dredd-hooks-php --dev
爲什麼它不起作用?我究竟做錯了什麼?
P.S.對不起我的英語不好。