zfcampus / zf-apigility-admin

Admin API and UI for Apigility
BSD 3-Clause "New" or "Revised" License
90 stars 64 forks source link

RPC Controller __construct gives "Unable to fetch RPC services" #376

Closed kimmo-steleco closed 5 years ago

kimmo-steleco commented 7 years ago

Adding a __construct to a RPC controller causes the ui to give the "Unable to fetch RPC services" error and the RPC services names aren't in the list anymore. I can use them through postman just fine though.

Using version: 1.5.9 installed with composer require of "zfcampus/zf-apigility".

apigility admin ui

Tjalle commented 5 years ago

Maybe a little late, but I had the same error today.

My issue was this : I had copied my controller code because an other service was pretty much the same. I missed the namespace (first line of php code in de controller file) and it was still set to the other service name. This produced this error, after updating the namespace everything was working fine again.