zendframework/zend-loader
Autoloading and class loading utilities for Zend Framework applications. Provides standard and optimized autoloaders (including PSR-0/PSR-4 style support), plugin class loading, and tools to resolve and map class names to files for legacy or modular codebases.
The PluginClassLocator interface describes a component capable of maintaining
an internal map of plugin names to actual class names. Classes implementing this
interface can register and unregister plugin/class associations, and return the
entire map.
Classes implementing the PluginClassLocator must implement the following three
methods:
namespace Zend\Loader;
interface PluginClassLocator
{
public function registerPlugin($shortName, $className);
public function unregisterPlugin($shortName);
public function getRegisteredPlugins();
}
This component defines no configuration options, as it is an interface.
registerPlugin(string $shortName, string $className) : void
Implement this method to add or overwrite plugin name/class name associations in
the internal plugin map. $shortName will be aliased to $className.
unregisterPlugin(string $shortName) : void
Implement this to allow removing an existing plugin mapping corresponding to
$shortName.
getRegisteredPlugins() : array
Implement this to allow returning the plugin name/class name map.
How can I help you explore Laravel packages today?