Thanks for reply!
To avoid open new discussion, I leave my question here.
Creating a custom preconfigured DI container like Phalcon\Di\FactoryDefault.
Any suggestions?...
class CustomDi extends Phalcon\Di implements Phalcon\DiInterface
{
public function __construct()
{
parent::__construct();
$this->setShared('router', function () {
return new Phalcon\Mvc\Router();
});
$this->setShared('view', function () {
return new Phalcon\Mvc\View();
});
$this->setShared('dispatcher', function () {
return new Phalcon\Mvc\Dispatcher();
});
$this->setShared('response', function () {
return new Phalcon\Http\Response();
});
/* ... */
}
}