1
0

Introducing HandlerConfig class to give handlers config values they need

Dieser Commit ist enthalten in:
2019-09-29 20:27:53 +02:00
Ursprung 364d82a99f
Commit 0ccc20454b
8 geänderte Dateien mit 36 neuen und 33 gelöschten Zeilen

Datei anzeigen

@@ -15,14 +15,16 @@ class RequestWorker
Template *templ;
UrlProvider *urlProvider;
ICache *cache;
HandlerConfig *handlerConfig;
std::unique_ptr<SessionDao> sessionDao;
private:
Session retrieveSession(std::string token) const;
public:
RequestWorker(Database &db, Template &templ, UrlProvider &provider, ICache &cache)
RequestWorker(HandlerConfig &handlerConfig, Database &db, Template &templ, UrlProvider &provider, ICache &cache)
{
this->handlerConfig = &handlerConfig;
this->db = &db;
this->templ = &templ;
this->urlProvider = &provider;