Introducing HandlerConfig class to give handlers config values they need
此提交包含在:
@@ -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;
|
||||
|
新增問題並參考
封鎖使用者