interface CommonRegistrationInterface in X Autoload 7.5
Same name and namespace in other branches
- 7.4 lib/ClassFinder/CommonRegistrationInterface.php \Drupal\xautoload\ClassFinder\CommonRegistrationInterface
Class finder interface with additional registration methods.
Hierarchy
- interface \Drupal\xautoload\ClassFinder\CommonRegistrationInterface
Expanded class hierarchy of CommonRegistrationInterface
All classes that implement CommonRegistrationInterface
1 file declares its use of CommonRegistrationInterface
- ClassFinderAdapterInterface.php in src/
Adapter/ ClassFinderAdapterInterface.php
File
- src/
ClassFinder/ CommonRegistrationInterface.php, line 8
Namespace
Drupal\xautoload\ClassFinderView source
interface CommonRegistrationInterface {
// Composer compatibility
// ---------------------------------------------------------------------------
/**
* Registers an array ("map") of classes to file paths.
*
* @param array $classMap
* Class to filename map. E.g. $classMap['Acme\Foo'] = 'lib/Acme/Foo.php'
*/
function addClassMap(array $classMap);
/**
* Adds a PSR-0 style prefix. Alias for ->addPsr0().
*
* @param string $prefix
* @param string[]|string $paths
*/
function add($prefix, $paths);
/**
* Adds a PSR-0 style prefix. Alias for ->add().
*
* @param string $prefix
* @param string[]|string $paths
*/
function addPsr0($prefix, $paths);
/**
* Adds a PSR-4 style namespace.
*
* @param string $prefix
* @param string[]|string $paths
*/
function addPsr4($prefix, $paths);
// More convenience stuff
// ---------------------------------------------------------------------------
/**
* Adds a PSR-0 style namespace.
*
* This will assume that we are really dealing with a namespace, even if it
* has no '\\' included.
*
* @param string $prefix
* @param string[]|string $paths
*/
function addNamespacePsr0($prefix, $paths);
/**
* Adds a PEAR-like prefix.
*
* This will assume with no further checks that $prefix contains no namespace
* separator.
*
* @param string $prefix
* @param string[]|string $paths
*/
function addPear($prefix, $paths);
/**
* Adds a prefix similar to PEAR, but with flat directories.
*
* This will assume with no further checks that $prefix contains no namespace
* separator.
*
* @param string $prefix
* @param string[]|string $paths
*/
function addPearFlat($prefix, $paths);
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
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 |