I am using the restler library from Luracast and I would like to use namespaces for my API classes. As an example, you can do:
$r = new Restler();
$r->addAPIClass('\fully\qualified\path\Foo');
$r->handle();
Currently, it throws an error on line 340 in the restler.php file:
Fatal error: Class 'Foo' not found in /work/projects/xxxx/lib/Restler/restler/restler.php on line 341
Now I have conflicting class names, and I would like to use namespaces, rather than crack the problem.
source
share