You are here

function ClassFinderAdapter::addPsr0 in X Autoload 7.5

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

Adds a PSR-0 style prefix. Alias for ->add().

Parameters

string $prefix:

string[]|string $paths:

Overrides CommonRegistrationInterface::addPsr0

File

src/Adapter/ClassFinderAdapter.php, line 217

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);
}