Refactor afterLoad interface to expose raw plugin context

This commit is contained in:
Kyle Shockey
2017-12-28 16:26:05 -06:00
parent 1646b270f8
commit 9d48c4751a
4 changed files with 118 additions and 14 deletions

View File

@@ -6,7 +6,8 @@ import * as specWrapActionReplacements from "./spec-wrap-actions"
export default function() {
return {
afterLoad(system) {
system.initOAuth = system.authActions.configureAuth
this.rootInjects = this.rootInjects || {}
this.rootInjects.initOAuth = system.authActions.configureAuth
},
statePlugins: {
auth: {