Skip to content

Instantly share code, notes, and snippets.

@creynders
Last active December 18, 2015 02:39
Show Gist options
  • Save creynders/5712266 to your computer and use it in GitHub Desktop.
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
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
Copy link
Author

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