/** * @return NConnection */ protected function createServiceNette__database__default() { $service = new NConnection('mysql:host=sql.satoya.cz;dbname=gymfed_demo', 'gymfed_demo', 'HuuJNUw6GpjMjqfx', NULL); $service->setCacheStorage($this->getService('cacheStorage')); NDebugger::$blueScreen->addPanel('NDatabasePanel::renderException'); $service->setDatabaseReflection(new NDiscoveredReflection($this->getService('cacheStorage'))); return $service; }
/** * @return NConnection */ protected function createServiceNette__database__default() { $service = new NConnection('mysql:host=localhost;dbname=rs', 'root', NULL, NULL); $service->setCacheStorage($this->getService('cacheStorage')); NDebugger::$blueScreen->addPanel('NDatabasePanel::renderException'); $service->setDatabaseReflection(new NDiscoveredReflection($this->getService('cacheStorage'))); return $service; }