 //        let factory = BasicServiceFactory(BlogPresenter.self, supports: interfaces) { container in
 //            return instance
 //        }
-        #warning("sort out with generics")
-//        services.register([BlogPresenter.self], factory: { _ in
-//            return blogPresenter
-//        })
+        services.register(BlogPresenter.self) { _ in
+            return self.blogPresenter
+        }
+        
+        
         try services.register(AuthenticationProvider())
         services.register([PasswordHasher.self, PasswordVerifier.self]) { _ in
             return BCryptDigest()


    let blogPath: String?
    let pathCreator: BlogPathCreator
    let blogPresenter: BlogPresenter
    let feedInformation: FeedInformation
    let enableAuthorPages: Bool
    let enableTagPages: Bool

                useBootstrap4: Bool = true,
                enableAuthorPages: Bool = true,
                enableTagPages: Bool = true,
                blogPresenter: P) {
//        self.postsPerPage = postsPerPage
//        self.databaseIdentifier = databaseIdentifier
        self.blogPath = blogPath
        self.feedInformation = feedInformation

        self.pathCreator = BlogPathCreator(blogPath: self.blogPath)
        #warning("Default to sensible one in the constructor")
        self.blogPresenter = blogPresenter
        self.enableAuthorPages = enableAuthorPages
        self.enableTagPages = enableTagPages

