Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Quick fix for migration from RLv2b7 to RLv2b8, see http://knowledge.robotlegs.org/discussions/robotlegs-2/2878-update-causes-error
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);
}
}
}
@creynders

This comment has been minimized.

Copy link
Owner Author

@creynders creynders commented Jun 5, 2013

Just install this after installing the MVCSBundle, but before any of your own configs etc. and everything will work as before

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment