function CommonRegistrationInterface::addNamespacePsr0 in X Autoload 7.5
Same name and namespace in other branches
- 7.4 lib/ClassFinder/CommonRegistrationInterface.php \Drupal\xautoload\ClassFinder\CommonRegistrationInterface::addNamespacePsr0()
Adds a 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 src/
ClassFinder/ ClassFinder.php - Adds a PSR-0 style namespace.
- ClassFinderAdapter::addNamespacePsr0 in src/
Adapter/ ClassFinderAdapter.php - Adds a PSR-0 style namespace.
- LocalDirectoryAdapter::addNamespacePsr0 in src/
Adapter/ LocalDirectoryAdapter.php - Adds a PSR-0 style namespace.
File
- src/
ClassFinder/ CommonRegistrationInterface.php, line 57
Class
- CommonRegistrationInterface
- Class finder interface with additional registration methods.
Namespace
Drupal\xautoload\ClassFinderCode
function addNamespacePsr0($prefix, $paths);