Reformating

This commit is contained in:
Martin Karkowski 2021-10-18 08:02:40 +02:00
parent f6a86c30f3
commit ac84612a12

View File

@ -300,11 +300,11 @@ export class NopePackageLoader implements INopePackageLoader {
this._logger.debug("adding selector", _selector.toString());
this.container
.bind(_selector)
[_method](_element.type)
[_element.options.scope]()
[_element.options.addition.name](
..._element.options.addition.args
)
[_method](_element.type)
[_element.options.scope]()
[_element.options.addition.name](
..._element.options.addition.args
)
.onActivation((_context, _element) => {
return _self._onActivation(_context, _element);
});
@ -330,8 +330,8 @@ export class NopePackageLoader implements INopePackageLoader {
this._logger.debug("adding selector", _selector.toString());
this.container
.bind(_selector)
[_method](_element.type)
[_element.options.scope as string]()
[_method](_element.type)
[_element.options.scope as string]()
.onActivation((_context, _element) => {
return _self._onActivation(_context, _element);
});
@ -359,10 +359,10 @@ export class NopePackageLoader implements INopePackageLoader {
this._logger.debug("adding selector", _selector.toString());
this.container
.bind(_selector)
[_method](_element.type)
[_element.options.addition.name as string](
..._element.options.addition.args
)
[_method](_element.type)
[_element.options.addition.name as string](
..._element.options.addition.args
)
.onActivation((_context, _element) => {
return _self._onActivation(_context, _element);
});
@ -388,7 +388,7 @@ export class NopePackageLoader implements INopePackageLoader {
this._logger.debug("adding selector", _selector.toString());
this.container
.bind(_selector)
[_method](_element.type)
[_method](_element.type)
.onActivation((_context, _element) => {
return _self._onActivation(_context, _element);
});
@ -422,7 +422,7 @@ export class NopePackageLoader implements INopePackageLoader {
this.container
.bind(_selector)
.toFactory(_element.options.factoryCallback)
[_element.options.addition.name](firstArg, secondArg);
[_element.options.addition.name](firstArg, secondArg);
}
}
} else {
@ -459,7 +459,7 @@ export class NopePackageLoader implements INopePackageLoader {
);
};
})
[_element.options.addition.name](firstArg, secondArg);
[_element.options.addition.name](firstArg, secondArg);
}
}
} else {
@ -520,8 +520,8 @@ export class NopePackageLoader implements INopePackageLoader {
if (this.packages[element.nameOfPackage] !== undefined) {
throw Error(
"Already loaded a Package with the name \"" +
element.nameOfPackage +
"\" !"
element.nameOfPackage +
"\" !"
);
}
@ -638,10 +638,10 @@ export class NopePackageLoader implements INopePackageLoader {
if (this._logger?.enabledFor) {
this._logger.debug(
"Requesting Generating Instance \"" +
definition.options.identifier +
"\" of type \"" +
definition.options.type +
"\""
definition.options.identifier +
"\" of type \"" +
definition.options.type +
"\""
);
}
@ -649,13 +649,13 @@ export class NopePackageLoader implements INopePackageLoader {
definition.options
);
if (this._logger?.enabledFor) {
this._logger.debug(
if (this._logger) {
this._logger.info(
"Sucessfully Generated the Instance \"" +
definition.options.identifier +
"\" of type \"" +
definition.options.type +
"\""
definition.options.identifier +
"\" of type \"" +
definition.options.type +
"\""
);
}