interface ClassFinderAdapterInterface in X Autoload 7.5
Same name and namespace in other branches
- 7.4 lib/Adapter/ClassFinderAdapterInterface.php \Drupal\xautoload\Adapter\ClassFinderAdapterInterface
Hierarchy
- interface \Drupal\xautoload\ClassFinder\CommonRegistrationInterface
- interface \Drupal\xautoload\Adapter\ClassFinderAdapterInterface
Expanded class hierarchy of ClassFinderAdapterInterface
All classes that implement ClassFinderAdapterInterface
File
- src/
Adapter/ ClassFinderAdapterInterface.php, line 7
Namespace
Drupal\xautoload\AdapterView source
interface ClassFinderAdapterInterface extends CommonRegistrationInterface {
// Discovery
// ---------------------------------------------------------------------------
/**
* @param string[] $paths
* File paths or wildcard paths for class discovery.
*/
function addClassmapSources($paths);
// Composer tools
// ---------------------------------------------------------------------------
/**
* Scan a composer.json file provided by a Composer package.
*
* @param string $file
*
* @throws \Exception
*/
function composerJson($file);
/**
* Scan a directory containing Composer-generated autoload files.
*
* @param string $dir
* Directory to look for Composer-generated files. Typically this is the
* ../vendor/composer dir.
*/
function composerDir($dir);
// multiple PSR-0 / PSR-4
// ---------------------------------------------------------------------------
/**
* Add multiple PSR-0 namespaces
*
* @param array $prefixes
*/
function addMultiplePsr0(array $prefixes);
/**
* Add multiple PSR-4 namespaces
*
* @param array $map
*/
function addMultiplePsr4(array $map);
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ClassFinderAdapterInterface:: |
function | 2 | ||
ClassFinderAdapterInterface:: |
function | Add multiple PSR-0 namespaces | 2 | |
ClassFinderAdapterInterface:: |
function | Add multiple PSR-4 namespaces | 2 | |
ClassFinderAdapterInterface:: |
function | Scan a directory containing Composer-generated autoload files. | 2 | |
ClassFinderAdapterInterface:: |
function | Scan a composer.json file provided by a Composer package. | 2 | |
CommonRegistrationInterface:: |
function | Adds a PSR-0 style prefix. Alias for ->addPsr0(). | 3 | |
CommonRegistrationInterface:: |
function | Registers an array ("map") of classes to file paths. | 3 | |
CommonRegistrationInterface:: |
function | Adds a PSR-0 style namespace. | 3 | |
CommonRegistrationInterface:: |
function | Adds a PEAR-like prefix. | 3 | |
CommonRegistrationInterface:: |
function | Adds a prefix similar to PEAR, but with flat directories. | 3 | |
CommonRegistrationInterface:: |
function | Adds a PSR-0 style prefix. Alias for ->add(). | 3 | |
CommonRegistrationInterface:: |
function | Adds a PSR-4 style namespace. | 3 |