Skip to content

Kirby 4.5.0

load()

A super simple class autoloader

load(array $classmap, ?string $base = null): void

Parameters

Name Type Default
$classmap * array
$base string|null null

Example

load() is a shortcut for F::loadClasses():

load([
'superwoman\\superplugin\\superclass' => 'src/Superclass.php'
], __DIR__);