add plugin support

This commit is contained in:
Philipp Kühn
2020-03-05 22:15:17 +01:00
parent d722cfe1bc
commit bb26465da8
4 changed files with 35 additions and 73 deletions

View File

@@ -28,4 +28,10 @@ export default class ExtensionManager {
.all()
}
get plugins(): any {
return collect(this.extensions)
.flatMap(extension => extension.plugins)
.toArray()
}
}