/
home
/
assocoweys
/
sompe
/
installation
/
src
/
DataShape
/
SiteInfo
/
Upload File
HOME
<?php /** * Akeeba Backup Restoration Script * * @package brs * @copyright Copyright (c)2024 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ namespace Akeeba\BRS\DataShape\SiteInfo; defined('_AKEEBA') or die(); use Psr\Container\ContainerInterface; /** * Site Information Setting: Root directory * * Warns the user if they're restoring to a new domain or subdomain. * * @since 10.0 */ class RootDirectory extends AbstractSiteInfo { /** @inheritdoc */ public static function make(ContainerInterface $container) { $lang = $container->get('language'); $info = $container->get('configuration')->extraInfo; $type = $container->get('configuration')->type; return new self( $lang->text('MAIN_LBL_EXTRAINFO_ROOT'), $info->root ?? null, $container->get('paths')->get('root'), $lang->text('MAIN_LBL_EXTRAINFO_ROOT_DIFFERS_' . $type) ); } }