CoreFiles by mySites.guru
ExtensionNamespaceMapper.php35 lines, 791 bytes, from Joomla_4.0.0-alpha10-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha9
md5
bf654004e1407b31c255c8665cbb980b
sha1
6722950a6b2c3a264039088f160c8d24ea52be7e
sha256
5af67ffd8c5605e499b8ff8bc2ea02a1378e67ca9fedfccc84570f2668a51684
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE
 */

namespace Joomla\CMS\Application;

defined('JPATH_PLATFORM') or die;

use JLoader;

/**
 * Trait for application classes which ensures the namespace mapper exists and includes it.
 *
 * @since  4.0.0
 */
trait ExtensionNamespaceMapper
{
	/**
	 * Allows the application to load a custom or default identity.
	 *
	 * @return  void
	 *
	 * @since   4.0.0
	 */
	public function createExtensionNamespaceMap()
	{
		JLoader::register('JNamespacePsr4Map', JPATH_LIBRARIES . '/namespacemap.php');
		$extensionPsr4Loader = new \JNamespacePsr4Map;
		$extensionPsr4Loader->load();
	}
}

The same content is in 4 releases, Joomla 4.0.0-alpha7 to 4.0.0-alpha10. See them all, or every version of this file.