setActiveProfiles method

  1. @override
void setActiveProfiles(
  1. List<String> profiles
)
override

Replaces the current set of active profiles with the given list.

Active profiles influence conditional configuration, especially with profile-based pods or property loading.

Example:

env.setActiveProfiles(['production']);

Implementation

@override
	void setActiveProfiles(List<String> profiles) {
		return synchronized(_activeProfiles, () {
			_activeProfiles.clear();
			for (String profile in profiles) {
				validateProfile(profile);
				_activeProfiles.add(profile);
			}
		});
	}