PHP Class Webiny\Component\ClassLoader\Loaders\Psr4

Inheritance: extends AbstractLoader
Afficher le fichier Open project: Webiny/Framework Class Usage Examples

Protected Properties

Свойство Type Description
$instance Holds the loader instance.

Méthodes publiques

Méthode Description
findClass ( string $class ) : string | boolean Parses that class name and returns the absolute path to the class.
registerMap ( string $prefix, array | string $library ) : void Register a map.

Method Details

findClass() public méthode

NOTE: no file existence checks should be performed, nor should the method require or include the class, is should just return the path to the file.
public findClass ( string $class ) : string | boolean
$class string Class name that should be loaded.
Résultat string | boolean Path to the class or false.

registerMap() public méthode

Register a map.
public registerMap ( string $prefix, array | string $library ) : void
$prefix string Map prefix or namespace.
$library array | string Absolute path to the library or an array with path and additional options.
Résultat void

Property Details

$instance protected_oe static_oe property

Holds the loader instance.
protected static $instance