CoreFiles by mySites.guru
ExtensionNamespaceMapper.php38 lines, 905 bytes, from Joomla_5.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 5.0.0-alpha1
md5
97d5a2659b5e4b73afe2764207b90c6a
sha1
87c48cc0cee7f47735bc6676e46b1cea8180b2be
sha256
2d400cdeb76299429b24bbfcab20a1f0c8ae1e0630c259aaa5fd0ed8d37f1fb6
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Application;

use JLoader;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * 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 5.0.0-alpha1 to 5.0.0-alpha2. See them all, or every version of this file.