private function setupDI() { Di::reset(); $di = new Di(); $di->setShared('session', function () { return new PhalconMemorySession(); }); $di->setShared('request', function () { return new Request(); }); return $di; }