Textpattern PHP Cross Reference Content Management Systems

Summary: /textpattern/vendors/Textpattern/Container/ContainerInterface.php - 67 lines - 1726 bytes - Source - Print

Description: Container.

Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ContainerInterface:: (3 methods):
getInstance()
remove()
register()

Interface: ContainerInterface


getInstance($alias, array $options line: 35
Gets an instance for the given alias.

return: object Instance of the resolved class
param: string $alias   The class alias
param: array  $options Options
remove($alias line: 45
Removes a registered class.

return: \Textpattern\Container\ContainerInterface
param: string $alias The alias
register($alias, $class line: 54
Registers a class.

Throws an exception if the alias is taken. To replace an alias, first
call remove.

return: \Textpattern\Container\ContainerInterface
param: string $alias The alias
param: string $class The class

title

Body