So I've been developing on a Windows machine (I know, I know), and I'm having trouble with the switch over to Linux, as my routes are no longer being recognized. What's strange is that my error message appears to make it very clear that I AM connecting to the right route, but it's not going through.
For my Users handler, I have:
$users = new MicroCollection();
$users->setHandler('UsersController', true);
$users->setPrefix('/users');
$users->post('/login', 'login');
$app->mount($users);
and my notFound handler is being triggered when I try the login function:
$app->notFound(
function () use ($app) {
throw new ErrorException('URI not found: ' . $app->request->getMethod() . ' ' . $app->request->getURI(), 404, 10);
}
);
Giving this error:
URI not found: POST \/users\/login
which seems to perfectly match the path it should.
I verified that all the path names are are the correct cases, and made sure my autoloader is working properly (Database connection is working fine, classes are all registered).
Any ideas what could have broken with the switch to Linux?