public static function autoload(string $typeName): bool
    {
        static $enabled;
        
        if (\defined('KOOLKODE_ASYNC_OPTIMIZATIONS')) {
            if ($enabled === null) {
                $enabled = \array_map('trim', \explode(',', \strtolower(\KOOLKODE_ASYNC_OPTIMIZATIONS)));
            }
            
            if (isset(self::$replacements[$typeName])) {
                foreach ($enabled as $key) {
                    if (isset(self::$replacements[$typeName][$key])) {
                        return \class_alias(self::$replacements[$typeName][$key], $typeName, true);
                    }
                }
            }
        }
        
        return false;
    }
public static function autoload(string $typeName): bool
    {
        static $enabled;
        
        if (\defined('KOOLKODE_ASYNC_OPTIMIZATIONS')) {
            if ($enabled === null) {
                $enabled = \array_map('trim', \explode(',', \strtolower(\KOOLKODE_ASYNC_OPTIMIZATIONS)));
            }
            
            if (isset(self::$replacements[$typeName])) {
                foreach ($enabled as $key) {
                    if (isset(self::$replacements[$typeName][$key])) {
                        return \class_alias(self::$replacements[$typeName][$key], $typeName, true);
                    }
                }
            }
        }
        
        return false;
    }
public static function autoload ( string $ typeName ) : bool { static $ enabled ; if ( \ defined ( 'KOOLKODE_ASYNC_OPTIMIZATIONS' ) ) { if ( $ enabled === null ) { $ enabled = \ array_map ( 'trim' , \ explode ( ',' , \ strtolower ( \ KOOLKODE_ASYNC_OPTIMIZATIONS ) ) ) ; } if ( isset ( self :: $ replacements [ $ typeName ] ) ) { foreach ( $ enabled as $ key ) { if ( isset ( self :: $ replacements [ $ typeName ] [ $ key ] ) ) { return \ class_alias ( self :: $ replacements [ $ typeName ] [ $ key ] , $ typeName , true ) ; } } } } return false ; }
Triggered by SPL autoload when a class needs to be loaded.
Triggered by SPL autoload when a class needs to be loaded .