ContainerAwareTrait
Defines the trait for a Container Aware Class.
since |
1.2 |
---|---|
note |
Traits are available in PHP 5.4+ |
Methods
getContainer
Get the DI container.
getContainer() : \Joomla\DI\Container
since |
1.2 |
---|---|
throws |
|
note |
As of 2.0 this method will be protected. |
Response
setContainer
Set the DI container.
setContainer(\Joomla\DI\Container $container) : mixed
since |
1.2 |
---|
Arguments
- $container
\Joomla\DI\Container
The DI container.
Response
mixed
Returns itself to support chaining.