-
-
Notifications
You must be signed in to change notification settings - Fork 0
Wiki Loaders
Danijel Galić edited this page Feb 1, 2024
·
1 revision
final class \FireHub\Core\Initializers\Autoload\Loaders()
Important
This class is marked as final.
This class was created by Danijel Galić <danijel.galic@outlook.com>
Copyright: 2024 FireHub Web Application Framework
License: <https://opensource.org/licenses/OSL-3.0> OSL Open Source License version 3
Version: GIT: $Id$ Blob checksum.
Fully Qualified Class Name: \FireHub\Core\Initializers\Autoload\Loaders
Source code: view source code
Blame: view blame
History: view history
Type | Name | Title |
---|---|---|
public | get | ### Get loader callback |
public | add | ### Adds a new loader |
public | remove | ### Removes loader |
public | list | ### Get list of autoloader implementations |
public Loaders::get(string $name):callable
Source code: view source code
Blame: view blame
- string $name -
non-empty-string
Loader name.
- \Error - If loader doesn't exist.
- callable -
callable(string):void
Loader callback.
public Loaders::add(string $name, callable $callback):true
Source code: view source code
Blame: view blame
- string $name -
non-empty-string
Loader name. - callable $callback -
callable(string):void
The autoload function being registered.
- \Error - If loader is empty, or loader already exists.
- true - Always true.
public Loaders::remove(string $name):true
Source code: view source code
Blame: view blame
- string $name -
non-empty-string
Loader name.
- \Error - If loader doesn't exist.
- true - Always true.
public Loaders::list():array
Source code: view source code
Blame: view blame
- array -
array<non-empty-string, callable(string):void>
List of autoloader implementations.
Build with phpDocumentor using template FireHub phpDocumentor Wiki Template.