You are here

public static function AnnotationRegistry::registerAutoloadNamespace in Plug 7

Adds 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:

Return value

void

1 call to AnnotationRegistry::registerAutoloadNamespace()
TestInit.php in lib/doctrine/common/tests/Doctrine/Tests/TestInit.php

File

lib/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php, line 77

Class

AnnotationRegistry
AnnotationRegistry.

Namespace

Doctrine\Common\Annotations

Code

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