protected AppComponent createComponent() { return DaggerAppComponent.builder() .apiModule(new ApiModule()) .dBModule(new DBModule(this)) .fileModule(new FileModule()) .domainModule(new DomainModule()) .build(); }
public static AppComponent init(PostsAndCommentsApp app) { return DaggerAppComponent.builder().mainModule(new MainModule(app)).build(); }