com\setasign\SetaFramework
Autoloader Class Autoloader
File: /SetaFramework/src/Autoloader.php
Class hierarchy
Summary
Properties
Methods
__construct()
Constructor
Parameters
- $register : bool
Define whether the constructor should autoregister this object to spl_autoloader
- $autoRegisterSetaFramework : bool
Define whether the constructor should autoregister the SetaFramework
addPath()
public Autoloader::addPath (
string $namespace,
string $path,
string $dirSeparator = \DIRECTORY_SEPARATOR
): selfstring $path,
string $dirSeparator = \DIRECTORY_SEPARATOR
Adds a Path to Autoloader
Parameters
- $namespace : string
If you are using php5.2 namespace style (e.g. "SetaPDF_Core_Document") your namespace need to end with "" (e.g. "SetaPDF")
- $path : string
Path on which the namespace can be found
- $dirSeparator : string
load()
Loads missing classes with the paths declared with Autoloader::addPath
This method is registered as autoload_function via spl_autoload_register
Parameters
- $classname : string
