import {Server} from "../../../core/server";
import {PassportService} from "../../passport/service/passport.service";
import {MembershipAddOnRepository} from "./repository/membership-add-on.repository";
import {MembershipAddOnSocketComponent} from "./component/membership-add-on-socket.component";

export class MembershipAddOnModule {
    service: MembershipAddOnService;
    component: MembershipAddOnComponent;
    routes: MembershipAddOnSocketRoutes;

    constructor(passportService: PassportService,
                MembershipAddOnRepository: MembershipAddOnRepository,
                server: Server) {
        this.service = new MembershipAddOnService(passportService, MembershipAddOnRepository);
        this.component = new MembershipAddOnSocketComponent(this.service);
        this.routes = new MembershipAddOnSocketRoutes(server, this.component);
    }
}
import {MembershipAddOnService} from "./service/membership-add-on.service";
import {MembershipAddOnComponent} from "./component/membership-add-on.component";
import {MembershipAddOnSocketRoutes} from "./routes/membership-add-on-socket.routes";