[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_installer/src/Extension/ -> InstallerComponent.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_installer
   6   *
   7   * @copyright   (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  namespace Joomla\Component\Installer\Administrator\Extension;
  12  
  13  use Joomla\CMS\Extension\BootableExtensionInterface;
  14  use Joomla\CMS\Extension\MVCComponent;
  15  use Joomla\CMS\HTML\HTMLRegistryAwareTrait;
  16  use Joomla\Component\Installer\Administrator\Service\HTML\Manage;
  17  use Joomla\Component\Installer\Administrator\Service\HTML\Updatesites;
  18  use Psr\Container\ContainerInterface;
  19  
  20  // phpcs:disable PSR1.Files.SideEffects
  21  \defined('JPATH_PLATFORM') or die;
  22  // phpcs:enable PSR1.Files.SideEffects
  23  
  24  /**
  25   * Component class for com_installer
  26   *
  27   * @since  4.0.0
  28   */
  29  class InstallerComponent extends MVCComponent implements
  30      BootableExtensionInterface
  31  {
  32      use HTMLRegistryAwareTrait;
  33  
  34      /**
  35       * Booting the extension. This is the function to set up the environment of the extension like
  36       * registering new class loaders, etc.
  37       *
  38       * If required, some initial set up can be done from services of the container, eg.
  39       * registering HTML services.
  40       *
  41       * @param   ContainerInterface  $container  The container
  42       *
  43       * @return  void
  44       *
  45       * @since   4.0.0
  46       */
  47      public function boot(ContainerInterface $container)
  48      {
  49          $this->getRegistry()->register('manage', new Manage());
  50          $this->getRegistry()->register('updatesites', new Updatesites());
  51      }
  52  }


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer