Class rex_autoload

REDAXO Autoloader.

This class was originally copied from the Symfony Framework: Fabien Potencier <fabien.potencier@symfony-project.com>

Adjusted in very many places

Package: redaxo\core
Located at redaxo/src/core/lib/autoload.php

Methods summary

public static
# register( )

Register rex_autoload in spl autoloader.

public static
# unregister( )

Unregister rex_autoload from spl autoloader.

public static boolean
# autoload( string $class )

Handles autoloading of classes.

public static
# saveCache( )

Saves the cache.

public static
# reload( boolean $force = false )

Reanalyses all added directories.

public static
# removeCache( )

Removes the cache.

public static
# addDirectory( string $dir )

Adds a directory to the autoloading system if not yet present.

public static string[]
# getClasses( )

Returns the classes.

Properties summary

protected static Composer\Autoload\ClassLoader $composerLoader
protected static boolean $registered
#false
protected static mixed $cacheFile
#null
protected static boolean $cacheChanged
#false
protected static boolean $reloaded
#false
protected static array $dirs
#[]
protected static array $addedDirs
#[]
protected static array $classes
#[]