import { inject , injectable , IConfig } from "@robotlegsjs/core" ; import { IMediatorMap } from "../../src" ; import { RobotlegsMediator } from "../mediator/RobotlegsMediator" ; import { SmileyMediator } from "../mediator/SmileyMediator" ; import { RobotlegsView } from "../view/RobotlegsView" ; import { SmileyView } from "../view/SmileyView" ; @ injectable ( ) export class MyConfig implements IConfig { @ inject ( IMediatorMap ) private mediatorMap : IMediatorMap ; public configure ( ) { this . mediatorMap . map ( RobotlegsView ) . toMediator ( RobotlegsMediator ) ; this . mediatorMap . map ( SmileyView ) . toMediator ( SmileyMediator ) ; } }