Back to BaseDatabaseModel class

Method bootComponent

protected \Joomla\CMS\Extension\ComponentInterface
bootComponent
(mixed $component)
Boots the component with the given name.
Parameters
  • string $component The component name, eg. com_content.
Returns
  • \Joomla\CMS\Extension\ComponentInterface The service container
Since
  • 4.0.0

Method bootComponent - Source code

/**
 * Boots the component with the given name.
 *
 * @param   string  $component  The component name, eg. com_content.
 *
 * @return  ComponentInterface  The service container
 *
 * @since   4.0.0
 */
protected function bootComponent($component) : ComponentInterface
{
    return Factory::getApplication()->bootComponent($component);
}