-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '4.0-dev' into j4finder_termsphrases
- Loading branch information
Showing
330 changed files
with
5,999 additions
and
3,293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
administrator/components/com_admin/Extension/AdminComponent.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
/** | ||
* @package Joomla.Administrator | ||
* @subpackage com_content | ||
* | ||
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
namespace Joomla\Component\Admin\Administrator\Extension; | ||
|
||
defined('JPATH_PLATFORM') or die; | ||
|
||
use Joomla\CMS\Extension\BootableExtensionInterface; | ||
use Joomla\CMS\Extension\Component; | ||
use Joomla\CMS\HTML\HTMLRegistryAwareTrait; | ||
use Joomla\CMS\MVC\Factory\MVCFactoryServiceTrait; | ||
use Joomla\CMS\MVC\Factory\MVCFactoryServiceInterface; | ||
use Joomla\Component\Admin\Administrator\Service\HTML\Directory; | ||
use Joomla\Component\Admin\Administrator\Service\HTML\PhpSetting; | ||
use Joomla\Component\Admin\Administrator\Service\HTML\System; | ||
use Psr\Container\ContainerInterface; | ||
|
||
/** | ||
* Component class for com_admin | ||
* | ||
* @since 4.0.0 | ||
*/ | ||
class AdminComponent extends Component implements BootableExtensionInterface, MVCFactoryServiceInterface | ||
{ | ||
use MVCFactoryServiceTrait; | ||
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('system', new System); | ||
$this->getRegistry()->register('phpsetting', new PhpSetting); | ||
$this->getRegistry()->register('directory', new Directory); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.