Back to HelperFactory class

Method register

public void
register
(\Joomla\DI\Container $container)
Registers the service provider with a DI container.
Parameters
  • \Joomla\DI\Container $container The DI container.
Returns
  • void
Since
  • 4.0.0
Class: HelperFactory
Project: Joomla

Method register - Source code

/**
 * Registers the service provider with a DI container.
 *
 * @param   Container  $container  The DI container.
 *
 * @return  void
 *
 * @since   4.0.0
 */
public function register(Container $container)
{
    $container->set(HelperFactoryInterface::class, function (Container $container) {
        return new \Joomla\CMS\Helper\HelperFactory($this->namespace);
    });
}