Skip to content

Instantly share code, notes, and snippets.

@monry
Created July 12, 2018 06:49
Show Gist options
  • Save monry/7aeebe9fce37fb7884d37086bd6e4e16 to your computer and use it in GitHub Desktop.
Save monry/7aeebe9fce37fb7884d37086bd6e4e16 to your computer and use it in GitHub Desktop.
Sample installer to occur ZenjectException
using Zenject;
namespace Sample
{
public interface IFoo {}
public interface IBar {}
public class Foo : IFoo {}
public class Bar : IBar {}
public class SampleInstaller : MonoInstaller
{
public override void InstallBindings()
{
Container.Bind<IFoo>().To<Foo>();
Container.Bind<IBar>().To<Bar>();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment