Skip to content

Commit

Permalink
updated poodinis to latest version (7.0.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
SingingBush committed Sep 5, 2016
1 parent 74fd356 commit c76ecc3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"proper-d": "~>0.0.2",
"consoled": "~>1.0.4",
"vibe-d": "~>0.7.30-beta.1",
"poodinis": "~>6.3.0",
"poodinis": "~>7.0.1",
"hibernated": "~>0.2.26",
"ddbc": "0.2.24"
},
Expand Down
2 changes: 1 addition & 1 deletion source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import eloquent.config.context;
import eloquent.controllers.web, eloquent.controllers.admin;

shared static this() {
auto container = DependencyContainer.getInstance();
auto container = new shared DependencyContainer();
container.registerContext!PoodinisContext; // Create application context before doing anything else

Properties properties = container.resolve!Properties;
Expand Down
6 changes: 3 additions & 3 deletions source/config/context.d
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class PoodinisContext : ApplicationContext {
container.register!(EloquentDatabase, EloquentDatabaseImpl);
EloquentDatabase dbConfig = container.resolve!EloquentDatabase;
SessionFactoryImpl sessionFactory = dbConfig.configure();
container.register!(SessionFactory, SessionFactoryImpl)([RegistrationOption.doNotAddConcreteTypeRegistration]).existingInstance(sessionFactory);
container.register!(UserService, UserServiceImpl)([RegistrationOption.doNotAddConcreteTypeRegistration]);
container.register!(BlogService, BlogServiceImpl)([RegistrationOption.doNotAddConcreteTypeRegistration]);
container.register!(SessionFactory, SessionFactoryImpl)(RegistrationOption.doNotAddConcreteTypeRegistration).existingInstance(sessionFactory);
container.register!(UserService, UserServiceImpl)(RegistrationOption.doNotAddConcreteTypeRegistration);
container.register!(BlogService, BlogServiceImpl)(RegistrationOption.doNotAddConcreteTypeRegistration);

// register Controllers (used as vibe-d WebInterface)
container.register!WebappController;
Expand Down

0 comments on commit c76ecc3

Please sign in to comment.