class AnnotationRegistry (View source)

Methods

static 
reset()

No description

static 
registerFile($file)

No description

static 
registerAutoloadNamespace(string $namespace, string|array|null $dirs = null)

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

static 
registerAutoloadNamespaces(array $namespaces)

Register multiple namespaces

static 
registerLoader(callabale $callabale)

Register an autoloading callabale for annotations, much like spl_autoload_register().

static void
loadAnnotationClass(string $class)

Autoload an annotation class silently.

Details

static reset()

static registerFile($file)

Parameters

$file

static registerAutoloadNamespace(string $namespace, string|array|null $dirs = null)

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

static registerAutoloadNamespaces(array $namespaces)

Register multiple namespaces

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

Parameters

array $namespaces

static registerLoader(callabale $callabale)

Register an autoloading callabale for annotations, much like spl_autoload_register().

NOTE: These class loaders HAVE to be silent when a class was not found! IMPORTANT: Loaders have to return true if they loaded a class that could contain the searched annotation class.

Parameters

callabale $callabale

static void loadAnnotationClass(string $class)

Autoload an annotation class silently.

Parameters

string $class

Return Value

void