Improves Controller and Adapter relationship

- Controllers that have adapters are AdaptableControllers
- AdaptableController is responsible to instantiate the proper adapter if needed (string, function or BaseAdapter)
- BaseAdapter is the base class for adapters, allows skipping when passed directly to the controller
This commit is contained in:
Florent Vilmart
2016-02-21 12:02:18 -05:00
parent bd548786ea
commit d504681589
11 changed files with 403 additions and 319 deletions

View File

@@ -227,7 +227,8 @@ describe('OneSignalPushAdapter', () => {
function makeDevice(deviceToken, appIdentifier) {
return {
deviceToken: deviceToken
deviceToken: deviceToken,
appIdentifier: appIdentifier
};
}