You are here

function CommonRegistrationInterface::addNamespacePsr0 in X Autoload 7.4

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

Add PSR-0 style namespace. This will assume that we are really dealing with a namespace, even if it has no '\\' included.

Parameters

string $prefix:

string[]|string $paths:

3 methods override CommonRegistrationInterface::addNamespacePsr0()
ClassFinder::addNamespacePsr0 in lib/ClassFinder/ClassFinder.php
Add PSR-0 style namespace. This will assume that we are really dealing with a namespace, even if it has no '\\' included.
ClassFinderAdapter::addNamespacePsr0 in lib/Adapter/ClassFinderAdapter.php
Add PSR-0 style namespace. This will assume that we are really dealing with a namespace, even if it has no '\\' included.
LocalDirectoryAdapter::addNamespacePsr0 in lib/Adapter/LocalDirectoryAdapter.php

File

lib/ClassFinder/CommonRegistrationInterface.php, line 52

Class

CommonRegistrationInterface
Class finder interface with additional registration methods.

Namespace

Drupal\xautoload\ClassFinder

Code

function addNamespacePsr0($prefix, $paths);