declareDefinition method

void declareDefinition(
  1. BeanDefinition bean
)

Implementation

void declareDefinition(BeanDefinition bean) {
  final ScopeDefinition? scopeDef =
      scopeDefinitions[bean.scopeQualifier];
  scopeDef?.save(bean);
  _scopes.values
      .where((scope) => scope.scopeDefinition == scopeDef)
      .forEach((scope) {
    scope.loadDefinition(bean);
  });
}