-
-
Save azjezz/6d743c628624f2d1715c6cc3533c34ee to your computer and use it in GitHub Desktop.
functions autoloading
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @param array<{ | |
* 'class' => array<string, string>, | |
* 'function' => array<string, string>, | |
* 'constant' => array<string, string>, | |
* }> $map | |
*/ | |
function autoload_set_paths(array $map): void; | |
/** | |
* @param array<{ | |
* 'class' => array<string, string>, | |
* 'function' => array<string, string>, | |
* 'constant' => array<string, string>, | |
* }> $map | |
*/ | |
function autoload_add_paths(array $map): void; | |
/** | |
* @return array<{ | |
* 'class' => array<string, string>, | |
* 'function' => array<string, string>, | |
* 'constant' => array<string, string>, | |
* }> | |
*/ | |
function autoload_get_paths(): array; | |
function autoload_set_class_path(string $class_name, string $file): void; | |
function autoload_set_function_path(string $function_name, string $file): void; | |
function autoload_set_constant_path(string $constant_name, string $file): void; | |
function autoload_get_class_path(string $class_name): ?string; | |
function autoload_get_function_path(string $function_name): ?string; | |
function autoload_get_constant_path(string $constant_name): ?string; | |
/** | |
* @param function(string $type, string $symbol): void $fallback | |
*/ | |
function autoload_add_fallback(callable $fallback): void; | |
/** | |
* @param function(string $type, string $symbol): void $fallback | |
*/ | |
function autoload_remove_fallback(callable $fallback): void; | |
/** | |
* @return list<function(string $type, string $symbol): void> | |
*/ | |
function autoload_get_fallbacks(): array; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment