You are here

function ClassFinderAdapter::addPsr0 in X Autoload 7.4

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

Add PSR-0 style prefixes. Alias for ->add().

Parameters

string $prefix:

string[]|string $paths:

Overrides CommonRegistrationInterface::addPsr0

File

lib/Adapter/ClassFinderAdapter.php, line 211

Class

ClassFinderAdapter
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) {
  $this
    ->add($prefix, $paths);
}