Back to ExtensionManagerTrait class

Method getContainer

protected \Joomla\DI\Container
getContainer
()
Get the DI container.
Returns
  • \Joomla\DI\Container
Since
  • 4.0.0
-
  • \Joomla\DI\Exception\ContainerNotFoundException May be thrown if the container has not been set.

Method getContainer - Source code

/**
 * Get the DI container.
 *
 * @return  Container
 *
 * @since   4.0.0
 * @throws  ContainerNotFoundException May be thrown if the container has not been set.
 */
protected abstract function getContainer();