You are here

public static function AnnotationRegistry::registerAutoloadNamespace in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php \Doctrine\Common\Annotations\AnnotationRegistry::registerAutoloadNamespace()

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 vendor/doctrine/common/tests/Doctrine/Tests/TestInit.php

File

vendor/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;
}