Skip to content

Commit

Permalink
adds logger as optional ctor arg to facilitate testing
Browse files Browse the repository at this point in the history
  • Loading branch information
creynders committed Jul 23, 2013
1 parent 69bb9b0 commit 4f57744
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/robotlegs/bender/extensions/mediatorMap/impl/MediatorMap.as
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
//------------------------------------------------------------------------------
// Copyright (c) 2009-2013 the original author or authors. All Rights Reserved.
//
// NOTICE: You are permitted to use, modify, and distribute this file
// in accordance with the terms of the license agreement accompanying it.
// Copyright (c) 2009-2013 the original author or authors. All Rights Reserved.
//
// NOTICE: You are permitted to use, modify, and distribute this file
// in accordance with the terms of the license agreement accompanying it.
//------------------------------------------------------------------------------

package robotlegs.bender.extensions.mediatorMap.impl
{
import flash.display.DisplayObject;
import flash.utils.Dictionary;

import robotlegs.bender.extensions.matching.ITypeMatcher;
import robotlegs.bender.extensions.matching.TypeMatcher;
import robotlegs.bender.extensions.mediatorMap.api.IMediatorMap;
Expand Down Expand Up @@ -45,9 +46,9 @@ package robotlegs.bender.extensions.mediatorMap.impl
/**
* @private
*/
public function MediatorMap(context:IContext)
public function MediatorMap(context:IContext, logger : ILogger = null)
{
_logger = context.getLogger(this);
_logger = logger || context.getLogger(this);
_factory = new MediatorFactory(context.injector);
_viewHandler = new MediatorViewHandler(_factory);
}
Expand Down

0 comments on commit 4f57744

Please sign in to comment.