Open ilzrv opened 1 year ago
This is probably a regression we introduced when upgrading from v6 spec to v7. v7 made the prefix optional...I guess we did not change all necessary code to reflect that.
Let me look into it.
Actually, @ilzrv are you sure you are using 0.9.1?
As far as I can tell, the prefix change was merged way before that version.
Also, I'm looking at code generated by that version (downloaded from the releases page) and the routing mechanism looks completely different.
Can you please confirm your plugin version by running protoc-gen-twirp_php --version
?
Thank you!
The result of executing the ./proto/bin/protoc-gen-twirp_php --version
command is: 0xc0000296b0
Preflight Checklist
Version
v.0.9.1
PHP version
7.4
Go version
No response
Expected Behavior
When the path prefix is changed, the library continues to work.
Actual Behavior
When changing the path prefix, the library does not work.
Steps To Reproduce
.proto
filepackage apis.inter.services;
But below the code (MyServer) we have a switch:
This switch does not use path prefix from constructor in ANY way, which we specify when registering the handler. Looks like a serious mistake. Why pass a prefix if it's always the same?
Additional Information
No response