I would like to have an authenitcation class and also have my APIS versioned without having to duplicate my security code.
I have setup restler and added the following to index.php;
Defaults::setProperty('useUrlBasedVersioning', true);
$r->addAuthenticationClass('MyOrg\\Security\\APIAuth');
I have then setup my authentication class within another folder outside of the public folder. It wasn't working on its own but I found due to using the UrlBased Versioning I had to repeat the class in the different namespaces.
e.g.
MyOrd ---> Security ---> v1 ---> APIAuth.php
MyOrd ---> Security ---> v2 ---> APIAuth.php
I don't want to have to do the above but more simple just have
MyOrd ---> Security ---> APIAuth.php
I'm using Restler RC5, any guidance would be appreciated or is this a bug with Restler.
Also logged as issue with the restler project https://github.com/Luracast/Restler/issues/433