handle 2.4 router:debug output
This commit is contained in:
parent
4b7f4f7e47
commit
b3c9ba0f9f
@ -38,10 +38,10 @@ fun! CompleteSymfonyRouter(base, res)
|
|||||||
|
|
||||||
for m in split(output, "\n")
|
for m in split(output, "\n")
|
||||||
let row = split(m)
|
let row = split(m)
|
||||||
if len(row) == 3
|
if len(row) == 5
|
||||||
let [route, method, url] = row
|
let [route, method, scheme, host, url] = row
|
||||||
if route =~ '^' . a:base
|
if route =~ '^' . a:base
|
||||||
let menu = 'method: '. method .', url: '. url
|
let menu = method.' '.scheme.' '.host.' '.url
|
||||||
call add(a:res, { 'word': route, 'menu': menu })
|
call add(a:res, { 'word': route, 'menu': menu })
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user