Autoloader
The Barn2 library autoloader.
Tags
Table of Contents
- SOURCE_PATHS = ['Barn2\\Lib' => __DIR__, 'WPTRT\\AdminNotices' => __DIR__ . '/vendor/admin-notices/src']
- load() : mixed
Constants
SOURCE_PATHS
public
mixed
SOURCE_PATHS
= ['Barn2\\Lib' => __DIR__, 'WPTRT\\AdminNotices' => __DIR__ . '/vendor/admin-notices/src']
Methods
load()
public
static load(mixed $class) : mixed
Parameters
- $class : mixed