interface ClassFinderAdapterInterface in X Autoload 7.4
Same name and namespace in other branches
- 7.5 src/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
- lib/
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 | Add PSR-0 style prefixes. Alias for ->addPsr0(). | 3 | |
CommonRegistrationInterface:: |
function | 3 | ||
CommonRegistrationInterface:: |
function | Add PSR-0 style namespace. This will assume that we are really dealing with a namespace, even if it has no '\\' included. | 3 | |
CommonRegistrationInterface:: |
function | Add PEAR-like prefix. This will assume with no further checks that $prefix contains no namespace separator. | 3 | |
CommonRegistrationInterface:: |
function | Add PSR-0 style prefixes. Alias for ->add(). | 3 | |
CommonRegistrationInterface:: |
function | 3 |