src/main/java/com/fizzbuzz/android/dagger/InjectingAppWidgetProvider.java
@Override
    public void onReceive(Context context, Intent intent) {
        mContext = context;

        // extend the application-scope object graph with the modules for this AppWidgetProvider
        mObjectGraph = ((Injector) context.getApplicationContext()).getObjectGraph().plus(getModules().toArray());

        // then inject ourselves
        mObjectGraph.inject(this);

        super.onReceive(context, intent);
    }
@Override
    public void onReceive(Context context, Intent intent) {
        mContext = context;

        // extend the application-scope object graph with the modules for this AppWidgetProvider
        mObjectGraph = ((Injector) context.getApplicationContext()).getObjectGraph().plus(getModules().toArray());

        // then inject ourselves
        mObjectGraph.inject(this);

        super.onReceive(context, intent);
    }
Creates an object graph for this AppWidgetProvider by extending the application-scope object graph with the
modules returned by {@link #getModules()}.
<p/>
Injects this AppWidgetProvider using the created graph.