/** * Callback for the AHEE__EE_Config___load_core_config__end hook. * basically just calls EE_Config->get_config() which will take care of loading or creating our config object for us * * @since 4.3.0 * @throws EE_Error * @param \EE_Config $EE_Config * @return \StdClass */ public static function set_config(EE_Config $EE_Config) { foreach (self::$_ee_config_registry as $config_class => $settings) { //first some validation of our incoming class_name. We'll throw an error early if its' not registered correctly if (!class_exists($config_class)) { throw new EE_Error(sprintf(__('The "%s" config class can not be registered with EE_Config because it does not exist. Verify that an autoloader has been set for this class', 'event_espresso'), $config_class)); } $EE_Config->get_config($settings['section'], $settings['name'], $config_class); } }