Пример #1
0
 protected AppComponent createComponent() {
   return DaggerAppComponent.builder()
       .apiModule(new ApiModule())
       .dBModule(new DBModule(this))
       .fileModule(new FileModule())
       .domainModule(new DomainModule())
       .build();
 }
Пример #2
0
 public static AppComponent init(PostsAndCommentsApp app) {
   return DaggerAppComponent.builder().mainModule(new MainModule(app)).build();
 }