def init_app(self, app, **kwargs):
        """Flask application initialization."""
        self.init_config(app)
        state = _AppState(app=app, cache=kwargs.get('cache'))
        app.extensions['invenio-collections'] = state
        return state
def init_app ( self , app , ** kwargs ) : self . init_config ( app ) state = _AppState ( app = app , cache = kwargs . get ( 'cache' ) ) app . extensions [ 'invenio-collections' ] = state return state
Flask application initialization.