You are here

interface CommonRegistrationInterface in X Autoload 7.4

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

Class finder interface with additional registration methods.

Hierarchy

Expanded class hierarchy of CommonRegistrationInterface

All classes that implement CommonRegistrationInterface

1 file declares its use of CommonRegistrationInterface
ClassFinderAdapterInterface.php in lib/Adapter/ClassFinderAdapterInterface.php

File

lib/ClassFinder/CommonRegistrationInterface.php, line 8

Namespace

Drupal\xautoload\ClassFinder
View source
interface CommonRegistrationInterface {

  //                                                      Composer compatibility
  // ---------------------------------------------------------------------------

  /**
   * @param array $classMap
   *   Class to filename map. E.g. $classMap['Acme\Foo'] = 'lib/Acme/Foo.php'
   */
  function addClassMap(array $classMap);

  /**
   * Add PSR-0 style prefixes. Alias for ->addPsr0().
   *
   * @param string $prefix
   * @param string[]|string $paths
   */
  function add($prefix, $paths);

  /**
   * Add PSR-0 style prefixes. Alias for ->add().
   *
   * @param string $prefix
   * @param string[]|string $paths
   */
  function addPsr0($prefix, $paths);

  /**
   * @param string $prefix
   * @param string[]|string $paths
   */
  function addPsr4($prefix, $paths);

  //                                                      More convenience stuff
  // ---------------------------------------------------------------------------

  /**
   * Add 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);

  /**
   * Add PEAR-like prefix.
   * This will assume with no further checks that $prefix contains no namespace
   * separator.
   *
   * @param $prefix
   * @param $paths
   */
  function addPear($prefix, $paths);

}

Members

Namesort descending Modifiers Type Description Overrides
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