CoreFiles by mySites.guru
ExtensionNamespaceMapper.php35 lines, 792 bytes, from Joomla_4.0.0-alpha12-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha11
md5
52e1a62437682f4172885426799bf3b5
sha1
bcb205b1b7781e4fe635f01e82ccbe33a9d9253c
sha256
2eb6176d69157b6aef06d7e23d63c7605b03705523b5fb19d3871add0b29c48d
<?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 2 releases, Joomla 4.0.0-alpha11 to 4.0.0-alpha12. See them all, or every version of this file.