Is there a way to lazy load the Not-Found handler? In the Docs all I see is directly using $app->notFound
with an anonymous function, however, if I want perhaps more complex code for my 404 pages, I'd like to hand it off to a 404 controller or something similar.
For my other handlers I lazy load them as shown in the docs:
// Users handler
$users = new MicroCollection();
$users->setHandler("UsersController", true);
$users->setPrefix("/users");
$users->get("/get/{id}", "get");
$users->get("/add/{payload}", "add");
$app->mount($users);
Is there a parallel way to do this with the Not-Found handler? Does it have an associated prefix or something?