interface ClassFinderInterface in X Autoload 7.4
Same name and namespace in other branches
- 7.5 src/ClassFinder/ClassFinderInterface.php \Drupal\xautoload\ClassFinder\ClassFinderInterface
Hierarchy
- interface \Drupal\xautoload\ClassLoader\ClassLoaderInterface
- interface \Drupal\xautoload\ClassFinder\ClassFinderInterface
Expanded class hierarchy of ClassFinderInterface
All classes that implement ClassFinderInterface
4 files declare their use of ClassFinderInterface
- AbstractCachedClassLoader.php in lib/
ClassLoader/ AbstractCachedClassLoader.php - AbstractClassLoaderDecorator.php in lib/
ClassLoader/ AbstractClassLoaderDecorator.php - ServiceFactory.php in lib/
DIC/ ServiceFactory.php - xautoload.early.lib.inc in ./
xautoload.early.lib.inc
File
- lib/
ClassFinder/ ClassFinderInterface.php, line 8
Namespace
Drupal\xautoload\ClassFinderView source
interface ClassFinderInterface extends ClassLoaderInterface {
/**
* Finds the path to the file where the class is defined.
*
* @param \Drupal\xautoload\ClassFinder\InjectedApi\InjectedApiInterface $api
* API object with a suggestFile() method.
* We are supposed to call $api->suggestFile($file) with all suggestions we
* can find, until it returns TRUE. Once suggestFile() returns TRUE, we stop
* and return TRUE as well. The $file will be in the $api object, so we
* don't need to return it.
* @param string $class
* The name of the class, with all namespaces prepended.
* E.g. Some\Namespace\Some\Class
*
* @return TRUE|NULL
* TRUE, if we found the file for the class.
* That is, if the $api->suggestFile($file) method returned TRUE one time.
* NULL, if we have no more suggestions.
*/
function apiFindFile($api, $class);
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ClassFinderInterface:: |
function | Finds the path to the file where the class is defined. | 2 | |
ClassLoaderInterface:: |
function | Callback for class loading. This will include ("require") the file found. | 3 | |
ClassLoaderInterface:: |
function | Registers this instance as an autoloader. | 1 | |
ClassLoaderInterface:: |
function | Unregister this instance as an autoloader. | 1 |