Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

Commit

Permalink
#! reduce registers, constants, aliases, providers to one Maps to one…
Browse files Browse the repository at this point in the history
… Map for simplification managing entries and add possibility for their overriding
  • Loading branch information
mjancarik committed Nov 15, 2016
1 parent 6d83469 commit 391add8
Show file tree
Hide file tree
Showing 4 changed files with 325 additions and 339 deletions.
5 changes: 3 additions & 2 deletions Bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,17 @@ export default class Bootstrap {
* object container.
*/
_bindDependencies() {
this._oc.setBindingState(ObjectContainer.IMA_BINDING_STATE);
this._config.initBindIma(ns, this._oc, this._config.bind);
this._oc.lock();

this._oc.setBindingState(ObjectContainer.PLUGIN_BINDING_STATE);
this._config.plugins
.filter((plugin) => typeof plugin.initBind === 'function')
.forEach((plugin) => {
plugin.initBind(ns, this._oc, this._config.bind);
});

this._oc.unlock();
this._oc.setBindingState(ObjectContainer.APP_BINDING_STATE);
this._config.initBindApp(ns, this._oc, this._config.bind);
}

Expand Down
Loading

0 comments on commit 391add8

Please sign in to comment.