Пример #1
0
    def _init(self):
        '''Initialize the injector, create and bind ApplicationScope,
        and load the default configuration.
        '''
        self._scopes = {}
        self._scopes_stack = []

        self._app_scope = ApplicationScope()
        self.bind_scope(ApplicationScope, self._app_scope)

        self._default_config()
Пример #2
0
 def new_scope(self):
     return ApplicationScope()