public static function AnnotationRegistry::registerAutoloadNamespace

Add a namespace with one or many directories to look for files or null for the include path.

Loading of this namespaces will be done with a PSR-0 namespace loading algorithm.

Parameters

string $namespace:

string|array|null $dirs:

3 calls to AnnotationRegistry::registerAutoloadNamespace()
AnnotatedClassDiscovery::getDefinitions in drupal/core/lib/Drupal/Core/Plugin/Discovery/AnnotatedClassDiscovery.php
Implements Drupal\Component\Plugin\Discovery\DiscoveryInterface::getDefinitions().
DocParserTest::testAutoloadAnnotation in drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Annotations/DocParserTest.php
@group DCOM-56
TestInit.php in drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/TestInit.php

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Annotations/AnnotationRegistry.php, line 70

Class

AnnotationRegistry
AnnotationRegistry

Namespace

Doctrine\Common\Annotations

Code

public static function registerAutoloadNamespace($namespace, $dirs = null) {
  self::$autoloadNamespaces[$namespace] = $dirs;
}