mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 15:05:44 +01:00
Merge with upstream
This commit is contained in:
@@ -11,11 +11,13 @@ type ExtensionRegistration = {
|
||||
* The Binder class is mainly exported for testing, plugins should only use the default export.
|
||||
*/
|
||||
export class Binder {
|
||||
name: string;
|
||||
extensionPoints: {
|
||||
[key: string]: Array<ExtensionRegistration>;
|
||||
};
|
||||
|
||||
constructor() {
|
||||
constructor(name: string) {
|
||||
this.name = name;
|
||||
this.extensionPoints = {};
|
||||
}
|
||||
|
||||
@@ -95,6 +97,6 @@ export class Binder {
|
||||
}
|
||||
|
||||
// singleton binder
|
||||
const binder = new Binder();
|
||||
const binder = new Binder("default");
|
||||
|
||||
export default binder;
|
||||
|
||||
Reference in New Issue
Block a user