[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Administrator 5 * @subpackage mod_articles_latest 6 * 7 * @copyright (C) 2022 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 */ 10 11 defined('_JEXEC') or die; 12 13 use Joomla\CMS\Extension\Service\Provider\HelperFactory; 14 use Joomla\CMS\Extension\Service\Provider\Module; 15 use Joomla\CMS\Extension\Service\Provider\ModuleDispatcherFactory; 16 use Joomla\DI\Container; 17 use Joomla\DI\ServiceProviderInterface; 18 19 /** 20 * The article latest module service provider. 21 * 22 * @since 4.2.0 23 */ 24 return new class implements ServiceProviderInterface 25 { 26 /** 27 * Registers the service provider with a DI container. 28 * 29 * @param Container $container The DI container. 30 * 31 * @return void 32 * 33 * @since 4.2.0 34 */ 35 public function register(Container $container) 36 { 37 $container->registerServiceProvider(new ModuleDispatcherFactory('\\Joomla\\Module\\ArticlesLatest')); 38 $container->registerServiceProvider(new HelperFactory('\\Joomla\\Module\\ArticlesLatest\\Site\\Helper')); 39 40 $container->registerServiceProvider(new Module()); 41 } 42 };
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |