Hi, i use a micro application and i want detect current calling controller instance. i use before method
$app->before(function () use ($app) {
// HERE. I WANT CHECK HANDLER INSTANCE. HOW?
})
i know that i use
$app->getActiveHandler();
$handler[0]->getDefinition();
but getDefinition return path to class, not instance ;/ What can I do?