import {define, singleton} from '@appolo/inject'
import {PubSubProvider} from "@appolo/pubsub";
@define()
@singleton()
export class SomePublisher {
@inject() pubSubProvider:PubSubProvider
async publish(data:any): Promise<any> {
return this.pubSubProvider.publish("test",data)
}
}