You are here

interface ClassFinderAdapterInterface in X Autoload 7.5

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

Hierarchy

Expanded class hierarchy of ClassFinderAdapterInterface

All classes that implement ClassFinderAdapterInterface

File

src/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 Adds a PSR-0 style prefix. Alias for ->addPsr0(). 3
CommonRegistrationInterface::addClassMap function Registers an array ("map") of classes to file paths. 3
CommonRegistrationInterface::addNamespacePsr0 function Adds a PSR-0 style namespace. 3
CommonRegistrationInterface::addPear function Adds a PEAR-like prefix. 3
CommonRegistrationInterface::addPearFlat function Adds a prefix similar to PEAR, but with flat directories. 3
CommonRegistrationInterface::addPsr0 function Adds a PSR-0 style prefix. Alias for ->add(). 3
CommonRegistrationInterface::addPsr4 function Adds a PSR-4 style namespace. 3