You are here

interface ClassFinderAdapterInterface in X Autoload 7.4

Same name and namespace in other branches
  1. 7.5 src/Adapter/ClassFinderAdapterInterface.php \Drupal\xautoload\Adapter\ClassFinderAdapterInterface

Hierarchy

Expanded class hierarchy of ClassFinderAdapterInterface

All classes that implement ClassFinderAdapterInterface

File

lib/Adapter/ClassFinderAdapterInterface.php, line 7

Namespace

Drupal\xautoload\Adapter
View 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

Namesort descending Modifiers Type Description Overrides
ClassFinderAdapterInterface::addClassmapSources function 2
ClassFinderAdapterInterface::addMultiplePsr0 function Add multiple PSR-0 namespaces 2
ClassFinderAdapterInterface::addMultiplePsr4 function Add multiple PSR-4 namespaces 2
ClassFinderAdapterInterface::composerDir function Scan a directory containing Composer-generated autoload files. 2
ClassFinderAdapterInterface::composerJson function Scan a composer.json file provided by a Composer package. 2
CommonRegistrationInterface::add function Add PSR-0 style prefixes. Alias for ->addPsr0(). 3
CommonRegistrationInterface::addClassMap function 3
CommonRegistrationInterface::addNamespacePsr0 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::addPear function Add PEAR-like prefix. This will assume with no further checks that $prefix contains no namespace separator. 3
CommonRegistrationInterface::addPsr0 function Add PSR-0 style prefixes. Alias for ->add(). 3
CommonRegistrationInterface::addPsr4 function 3