From 845ff3d141553d24d4572738101fce948bf40e67 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 14 Jun 2022 18:31:39 +0200 Subject: refactor!: rename Container to DIContainer --- examples/basic/src/bootstrap.cpp | 16 ++++++++-------- examples/basic/src/bootstrap.hpp | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'examples') diff --git a/examples/basic/src/bootstrap.cpp b/examples/basic/src/bootstrap.cpp index 104cf51..507cde7 100644 --- a/examples/basic/src/bootstrap.cpp +++ b/examples/basic/src/bootstrap.cpp @@ -12,15 +12,15 @@ #include "hero.hpp" #include "sword.hpp" -auto bootstrap() -> yacppdic::Container +auto bootstrap() -> yacppdic::DIContainer { - auto container = yacppdic::Container(); + auto di_container = yacppdic::DIContainer(); - container.bind().to(); - container.bind().to(); - container.bind().to(); + di_container.bind().to(); + di_container.bind().to(); + di_container.bind().to(); - container.bind() + di_container.bind() .to_factory( []() { @@ -29,7 +29,7 @@ auto bootstrap() -> yacppdic::Container ) .when_tagged(); - container.bind() + di_container.bind() .to_factory( []() { @@ -38,5 +38,5 @@ auto bootstrap() -> yacppdic::Container ) .when_tagged(); - return container; + return di_container; } diff --git a/examples/basic/src/bootstrap.hpp b/examples/basic/src/bootstrap.hpp index 9febbd9..964a3d7 100644 --- a/examples/basic/src/bootstrap.hpp +++ b/examples/basic/src/bootstrap.hpp @@ -2,4 +2,4 @@ #include -auto bootstrap() -> yacppdic::Container; +auto bootstrap() -> yacppdic::DIContainer; -- cgit v1.2.3-18-g5258