$collection = new Phalcon\Mvc\Micro\Collection();
$collection->setHandler(new API\Service\Sample($di));
I need to load the Sample class if it is really needed, for that i tried lazy loading in setHander but the i can't pass the $di object. Below is the code to make it as lazy loading
$collection->setHandler('API\Service\Sample', true);
thanks in advance