CoreAutoload
in package
A fallback autoloader to use when not using Composer's autoloaders
Tags
Table of Contents
Methods
- loadFile() : void
- Require a file with the given parameters
- nameSpaceToPath() : string
- Convert a given namespace to its corresponding file path
Methods
loadFile()
Require a file with the given parameters
public
static loadFile(string $class, string $nameSpace, string $baseDirectory) : void
Parameters
- $class : string
-
The class name
- $nameSpace : string
-
The namespace of the class
- $baseDirectory : string
-
The directory path the class file resides in
nameSpaceToPath()
Convert a given namespace to its corresponding file path
protected
static nameSpaceToPath(string $nameSpace) : string
Parameters
- $nameSpace : string