-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OO API #1
Comments
It can be similar to composer ClassLoader class ClassLoader {
public function getPrefixes(): array;
public function addPsr0(string $prefix, string|array $paths, bool $prepend = false): void;
public function setPsr0(string $prefix, string|array $path, bool $prepend = false): void;
public function getPsr0Prefixes(): array;
public function addPsr4(string $prefix, string|array $path, bool $prepend = false): void;
public function setPsr4(string $prefix, string|array $path, bool $prepend = false): void;
public function getPsr4Prefixes(): array;
public function register(bool $prepend = false): void; // registers [$this, 'loadClass']
public function unregister(): void; // unregisters [$this, 'loadClass']
public function loadClass(string $class): bool?;
public function findFile(string $class): string?;
} |
Not anytime soon, no. I intentionally went for functions instead of objects for this extension because I don't see how autoloading warrants the added complexity. |
IMO the project has a potential.
Are you going to provide OO API so there won't be a plenty of global space functions to be used?
The text was updated successfully, but these errors were encountered: