/** * Initialize the factory configuration */ public static function init() { self::$constants = get_defined_constants(true); self::initCache(); self::$cfg = new config(factory::loadCfg(__CLASS__)); }