- md5
- e816739fc1f24a46dceaa4914c89e50b
- sha1
- 9246beebe69cbd770838b118534edd64fe5fc925
- sha256
- 14edd45ca5d90dfb1946b2c906ea5a3cb701e05b6a4682b678494107d5bf82a8
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
<?php
/**
* @package Joomla.Installation
* @subpackage Application
*
* @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
\defined('_JEXEC') or die;
// Define the base path and require the other defines
\define('JPATH_BASE', \dirname(__DIR__));
require_once __DIR__ . '/defines.php';
// Check for presence of vendor dependencies not included in the git repository
if (!file_exists(JPATH_LIBRARIES . '/vendor/autoload.php') || !is_dir(JPATH_ROOT . '/media/vendor')) {
echo file_get_contents(JPATH_ROOT . '/templates/system/build_incomplete.html');
exit;
}
// Launch the application
require_once __DIR__ . '/framework.php';
// Check if the default log directory can be written to, add a logger for errors to use it
if (is_writable(JPATH_ADMINISTRATOR . '/logs')) {
\Joomla\CMS\Log\Log::addLogger(
[
'text_file' => 'error.php',
],
\Joomla\CMS\Log\Log::ALL,
['error']
);
}
// Register the Installation application
JLoader::registerNamespace('Joomla\\CMS\\Installation', JPATH_INSTALLATION . '/src', false, false);
JLoader::registerAlias('JRouterInstallation', \Joomla\CMS\Installation\Router\InstallationRouter::class);
// Get the dependency injection container
$container = \Joomla\CMS\Factory::getContainer();
$container->registerServiceProvider(new \Joomla\CMS\Installation\Service\Provider\Application());
/*
* Alias the session service keys to the web session service as that is the primary session backend for this application
*
* In addition to aliasing "common" service keys, we also create aliases for the PHP classes to ensure autowiring objects
* is supported. This includes aliases for aliased class names, and the keys for aliased class names should be considered
* deprecated to be removed when the class name alias is removed as well.
*/
$container->alias('session.web', 'session.web.installation')
->alias('session', 'session.web.installation')
->alias('JSession', 'session.web.installation')
->alias(\Joomla\CMS\Session\Session::class, 'session.web.installation')
->alias(\Joomla\Session\Session::class, 'session.web.installation')
->alias(\Joomla\Session\SessionInterface::class, 'session.web.installation');
/** @var \Joomla\CMS\Installation\Application\InstallationApplication $app */
$app = $container->get(\Joomla\CMS\Installation\Application\InstallationApplication::class);
\Joomla\CMS\Factory::$application = $app;
// Instantiate and execute the application
$app->execute();
The same content is in 29 releases, Joomla 6.1.0-alpha3 to 6.2.1-rc1. See them all, or every version of this file.