I need to use \Phalcon\Mvc\Micro as a service.
$di = new FactoryDefault();
$di->set('app', function () use ($di) {
$app = new Micro($di);
return $app;
});
$app->handle();
i did apply the above mention approach but it did not get do what i wanted. Please give me a direction.