You are here

function CommonRegistrationInterface::addPsr4 in X Autoload 7.5

Same name and namespace in other branches
  1. 7.4 lib/ClassFinder/CommonRegistrationInterface.php \Drupal\xautoload\ClassFinder\CommonRegistrationInterface::addPsr4()

Adds a PSR-4 style namespace.

Parameters

string $prefix:

string[]|string $paths:

3 methods override CommonRegistrationInterface::addPsr4()
ClassFinder::addPsr4 in src/ClassFinder/ClassFinder.php
Adds a PSR-4 style namespace.
ClassFinderAdapter::addPsr4 in src/Adapter/ClassFinderAdapter.php
Adds a PSR-4 style namespace.
LocalDirectoryAdapter::addPsr4 in src/Adapter/LocalDirectoryAdapter.php
Adds a PSR-4 style namespace.

File

src/ClassFinder/CommonRegistrationInterface.php, line 43

Class

CommonRegistrationInterface
Class finder interface with additional registration methods.

Namespace

Drupal\xautoload\ClassFinder

Code

function addPsr4($prefix, $paths);