Pass the value 'tempInstance' => true in the $values array to get a temporary instance. Otherwise you will get
the cached instance of the previously created container.
public static getInstance ( string $component, array $values = [], string $section = 'auto' ) : |
||
$component | string | The component you want to get a container for, e.g. com_foobar. |
$values | array | Container configuration overrides you want to apply. Optional. |
$section | string | The application section (site, admin) you want to fetch. Any other value results in auto-detection. |
return |