Skip to content
Snippets Groups Projects
Commit 103df6a7 authored by chris's avatar chris
Browse files

move Service class

parent c07966cf
No related branches found
No related tags found
1 merge request!413Image alt text
export { default as Service } from './src/Service';
export { WaxContext, useInjection } from './src/WaxContext';
export { PortalContext } from './src/PortalContext';
export { default as ComponentPlugin } from './src/ComponentPlugin';
......
export default class Service {
setApp(app) {
this.app = app;
}
get container() {
return this.app.container;
}
get config() {
return this.app.config.get(`config.${this.name}`) || this.app.config;
}
get schema() {
return this.app.getSchema();
}
}
......@@ -65,3 +65,21 @@ export const useInjection = identifier => {
? { instance: container.get(identifier) }
: null;
};
export class Service {
setApp(app) {
this.app = app;
}
get container() {
return this.app.container;
}
get config() {
return this.app.config.get(`config.${this.name}`) || this.app.config;
}
get schema() {
return this.app.getSchema();
}
}
import Service from '../Service';
import { Service } from 'wax-prosemirror-core';
import BaseServices from './index';
class BaseService extends Service {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment