mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 12:20:31 +00:00
23 lines
591 B
TypeScript
23 lines
591 B
TypeScript
import { Container } from 'typedi';
|
|
import { EventSubscriber, On } from 'event-dispatch';
|
|
|
|
import events from '@/subscribers/events';
|
|
import TenancyService from '@/services/Tenancy/TenancyService';
|
|
import BillsService from '@/services/Purchases/Bills';
|
|
|
|
@EventSubscriber()
|
|
export default class BillSubscriber {
|
|
tenancy: TenancyService;
|
|
billsService: BillsService;
|
|
logger: any;
|
|
|
|
/**
|
|
* Constructor method.
|
|
*/
|
|
constructor() {
|
|
this.tenancy = Container.get(TenancyService);
|
|
this.billsService = Container.get(BillsService);
|
|
this.logger = Container.get('logger');
|
|
}
|
|
}
|