-
Notifications
You must be signed in to change notification settings - Fork 5
04. Signal Command Map
Pete Shand edited this page Aug 3, 2018
·
1 revision
package com.example;
class CommandConfig implements IConfig
{
@inject public var commandMap:ISignalCommandMap;
public function configure():Void
{
commandMap.map(ExampleSignal).toCommand(ExampleCommand);
}
}
package com.example;
class ExampleMediator extends Mediator
{
@inject public var view:ExampleView;
@inject public var exampleSignal:ExampleSignal;
override public function initialize():Void
{
exampleSignal.dispatch();
}
}