- md5
- 32f9639f30a10eef7dc7730a30dbbc27
- sha1
- 22da4074b623f577ddb1e197c69baaa60ce5a03c
- sha256
- ba11406e12817c03b455c405f63f8974db2607107d5a5bd4c5e054fc72f85044
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
<?php
/**
* @package Joomla.Administrator
* @subpackage com_finder
*
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\Component\Finder\Administrator\Extension;
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 Joomla\Database\DatabaseInterface;
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)
{
$finder = new Finder();
$finder->setDatabase($container->get(DatabaseInterface::class));
$this->getRegistry()->register('finder', $finder);
$filter = new Filter();
$filter->setDatabase($container->get(DatabaseInterface::class));
$this->getRegistry()->register('filter', $filter);
$this->getRegistry()->register('query', new Query());
}
}
The same content is in 5 releases, Joomla 4.2.0-beta3 to 4.2.1-rc2. See them all, or every version of this file.