Skip to content

Commit

Permalink
change name of session authorize to authorizer
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie turner committed Aug 13, 2012
1 parent 82d3651 commit 651e870
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion flux/Session.hx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ enum ESessionOp {
interface SessionMgr
implements Startable<HttpServer,String,SessionMgr>,
implements ObservableDelegate<ESessionOp> {
function authorize(cb:ESessionOp->Void):Void->Void;
function authorizer(cb:ESessionOp->Void):Void->Void;
function exists(sessID:String,cb:Bool->Void):Void;
function logout(sessID:String,cb:ESession->Void):Void;
function http():HttpServer;
Expand Down
2 changes: 1 addition & 1 deletion flux/session/SessionMgrImpl.hx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ implements SessionMgr {

// public interface ...

public function authorize(cb:ESessionOp->Void):Void->Void {
public function authorizer(cb:ESessionOp->Void):Void->Void {
return observe(cb);
}

Expand Down
2 changes: 1 addition & 1 deletion usage/chat/ChatServer.hx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ChatServer {
.outcome(function(http) {
Session.manager().start(http)
.outcome(function(sess:SessionMgr) {
sess.authorize(sessAuth);
sess.authorizer(sessAuth);
Channel.server()
.addChannelAuth(channelAuth)
.start(sess).outcome(startRooms);
Expand Down

0 comments on commit 651e870

Please sign in to comment.