芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/administrator.2/components/com_finder/src/Extension/FinderComponent.php
* @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Component\Finder\Administrator\Extension; \defined('JPATH_PLATFORM') or die; use Joomla\CMS\Component\Router\RouterServiceInterface; use Joomla\CMS\Component\Router\RouterServiceTrait; use Joomla\CMS\Extension\BootableExtensionInterface; use Joomla\CMS\Extension\MVCComponent; use Joomla\CMS\HTML\HTMLRegistryAwareTrait; use Joomla\Component\Finder\Administrator\Service\HTML\Filter; use Joomla\Component\Finder\Administrator\Service\HTML\Finder; use Joomla\Component\Finder\Administrator\Service\HTML\Query; use Psr\Container\ContainerInterface; /** * Component class for com_finder * * @since 4.0.0 */ class FinderComponent extends MVCComponent implements BootableExtensionInterface, RouterServiceInterface { use RouterServiceTrait; use HTMLRegistryAwareTrait; /** * Booting the extension. This is the function to set up the environment of the extension like * registering new class loaders, etc. * * If required, some initial set up can be done from services of the container, eg. * registering HTML services. * * @param ContainerInterface $container The container * * @return void * * @since 4.0.0 */ public function boot(ContainerInterface $container) { $this->getRegistry()->register('finder', new Finder); $this->getRegistry()->register('filter', new Filter); $this->getRegistry()->register('query', new Query); } }