Class ClassLoader

Provides autoloading for concrete5 Typically getInstance() should be used rather than instantiating a new object.

Namespace: Concrete\Core\Foundation
Package: Concrete\Core\Foundation
Located at src/Foundation/ClassLoader.php

Methods summary

public static Concrete\Core\Foundation\ClassLoader
# getInstance( )

Returns the ClassLoader instance

public
protected
# setupMapClassAutoloader( )

Maps legacy classes

protected
# setupAliasAutoloader( )

Aliases concrete5 classes to shorter class name aliases

public
# registerPackage( string|Package $pkg )

Registers the prefixes for a package

public
# registerPackageController( string $pkgHandle )

Maps a package controller's class name to the file

protected
# setupFileAutoloader( )

Adds concrete5's core autoloading prefixes

Properties summary

public static Concrete\Core\Foundation\ClassLoader $instance
#
protected array $classAliases
# array()