mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 12:20:31 +00:00
22 lines
386 B
TypeScript
22 lines
386 B
TypeScript
import Container from 'typedi';
|
|
import { Service } from 'typedi';
|
|
|
|
@Service()
|
|
export default class HasSystemService implements SystemService {
|
|
private container(key: string) {
|
|
return Container.get(key);
|
|
}
|
|
|
|
knex() {
|
|
return this.container('knex');
|
|
}
|
|
|
|
repositories() {
|
|
return this.container('repositories');
|
|
}
|
|
|
|
cache() {
|
|
return this.container('cache');
|
|
}
|
|
}
|