Closed bohemima closed 10 years ago
Are you using the Explorer
class instead of Resources
in RC-6?
<?php
class Register {
/**
* @return int
*/
public function get(){
return 52;
}
}
use Luracast\Restler\Restler;
$r = new Restler();
$r->addApiClass('Register');
$r->addApiClass('Explorer');
My bad Arul, it does work using the Explorer resource, however not in RC5 using Resources as described in #295 (should it work)?
I will start adopting RC6 soon enough anyway, thanks for all your effort!
Re-visiting #295, this does not work correctly in neither RC5, 6 or dev-master
But responseClass remains "void"