ContainerAwareInterface

Defines the interface for a Container Aware class.

since

1.0

Methods

getContainer

Get the DI container.

getContainer() : \Joomla\DI\Container
deprecated
since

1.0

throws

\UnexpectedValueExceptionMay be thrown if the container has not been set.

deprecated

2.0 The getter will no longer be part of the interface.

Response

\Joomla\DI\Container

setContainer

Set the DI container.

setContainer(\Joomla\DI\Container $container) : mixed
since

1.0

Arguments

$container

\Joomla\DI\ContainerThe DI container.

Response

mixed