You are here

function LocalDirectoryAdapter::addPsr0 in X Autoload 7.4

Same name and namespace in other branches
  1. 7.5 src/Adapter/LocalDirectoryAdapter.php \Drupal\xautoload\Adapter\LocalDirectoryAdapter::addPsr0()

Parameters

string $prefix:

string|\string[] $paths:

bool $relative:

Overrides CommonRegistrationInterface::addPsr0

File

lib/Adapter/LocalDirectoryAdapter.php, line 137

Class

LocalDirectoryAdapter
An instance of this class is passed around to implementations of hook_xautoload(). It acts as a wrapper around the ClassFinder, to register stuff.

Namespace

Drupal\xautoload\Adapter

Code

function addPsr0($prefix, $paths, $relative = TRUE) {
  $relative && $this
    ->prependToPaths($paths);
  $this->master
    ->add($prefix, $paths);
}