__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Joomla! Content Management System
*
* @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\CMS\Service\Provider;
use Joomla\DI\Container;
use Joomla\DI\ServiceProviderInterface;
use Joomla\Registry\Registry;
// phpcs:disable PSR1.Files.SideEffects
\defined('JPATH_PLATFORM') or die;
// phpcs:enable PSR1.Files.SideEffects
/**
* Service provider for the application's config dependency
*
* @since 4.0.0
*/
class Config implements ServiceProviderInterface
{
/**
* Registers the service provider with a DI container.
*
* @param Container $container The DI container.
*
* @return void
*
* @since 4.0.0
*/
public function register(Container $container)
{
$container->alias('config', 'JConfig')
->share(
'JConfig',
function (Container $container) {
if (!is_file(JPATH_CONFIGURATION . '/configuration.php')) {
return new Registry();
}
\JLoader::register('JConfig', JPATH_CONFIGURATION . '/configuration.php');
if (!class_exists('JConfig')) {
throw new \RuntimeException('Configuration class does not exist.');
}
return new Registry(new \JConfig());
},
true
);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Application.php | File | 9.43 KB | 0664 |
|
| Authentication.php | File | 4.82 KB | 0664 |
|
| CacheController.php | File | 1.33 KB | 0664 |
|
| Config.php | File | 1.49 KB | 0664 |
|
| Console.php | File | 6.84 KB | 0664 |
|
| Database.php | File | 5.41 KB | 0664 |
|
| Dispatcher.php | File | 1.3 KB | 0664 |
|
| Document.php | File | 1.43 KB | 0664 |
|
| Form.php | File | 1.38 KB | 0664 |
|
| HTMLRegistry.php | File | 1.02 KB | 0664 |
|
| Language.php | File | 1.28 KB | 0664 |
|
| Logger.php | File | 1.15 KB | 0664 |
|
| Mailer.php | File | 1.1 KB | 0664 |
|
| Menu.php | File | 1.56 KB | 0664 |
|
| Pathway.php | File | 1.74 KB | 0664 |
|
| Router.php | File | 2.01 KB | 0664 |
|
| Session.php | File | 12.71 KB | 0664 |
|
| Toolbar.php | File | 1.4 KB | 0664 |
|
| User.php | File | 1.29 KB | 0664 |
|
| WebAssetRegistry.php | File | 1.48 KB | 0664 |
|