Last active
December 18, 2015 02:39
-
-
Save creynders/5712266 to your computer and use it in GitHub Desktop.
Quick fix for migration from RLv2b7 to RLv2b8, see http://knowledge.robotlegs.org/discussions/robotlegs-2/2878-update-causes-error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package robotlegs.bender.extensions.migration{ | |
import org.swiftsuspenders.Injector; | |
import org.swiftsuspenders.dependencyproviders.DependencyProvider; | |
import robotlegs.bender.framework.api.IExtension; | |
import robotlegs.bender.framework.api.IInjector; | |
public class MapInjectorExtension implements IExtension{ | |
public function extend(context:IContext):void{ | |
const injector : IInjector = context.injector; | |
const injectorProvider: DependencyProvider = injector.getMapping(IInjector).getProvider(); | |
injector.map(Injector).toProvider(injectorProvider); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just install this after installing the
MVCSBundle
, but before any of your own configs etc. and everything will work as before