You are here

function ExtendedClassFinderInterface::registerNamespacesRoot in X Autoload 7.4

Same name and namespace in other branches
  1. 7.5 src/ClassFinder/ExtendedClassFinderInterface.php \Drupal\xautoload\ClassFinder\ExtendedClassFinderInterface::registerNamespacesRoot()

Register PSR-0 root folders for given namespaces.

Parameters

string[] $map: Associative array, the keys are the namespaces, the values are the directories.

\Drupal\xautoload\DirectoryBehavior\DirectoryBehaviorInterface $behavior: If TRUE, then we are not sure if the directory at $path actually exists. If during the process we find the directory to be nonexistent, we unregister the path.

1 method overrides ExtendedClassFinderInterface::registerNamespacesRoot()
ClassFinder::registerNamespacesRoot in lib/ClassFinder/ClassFinder.php
Register PSR-0 root folders for given namespaces.

File

lib/ClassFinder/ExtendedClassFinderInterface.php, line 178

Class

ExtendedClassFinderInterface
Class finder interface with additional registration methods.

Namespace

Drupal\xautoload\ClassFinder

Code

function registerNamespacesRoot($map, $behavior = NULL);