Skip to content

Commit

Permalink
Add classmap for extensions, should be moved on a later point to the …
Browse files Browse the repository at this point in the history
…extensions itself
  • Loading branch information
laoneo committed May 22, 2017
1 parent c221f00 commit 0a0a7e1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/classmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
// No direct access.
defined('_JEXEC') or die;

require_once __DIR__ . '/extensions.classmap.php';

JLoader::registerAlias('JRegistry', '\\Joomla\\Registry\\Registry', '4.0');
JLoader::registerAlias('JRegistryFormat', '\\Joomla\\Registry\\AbstractRegistryFormat', '4.0');
JLoader::registerAlias('JRegistryFormatIni', '\\Joomla\\Registry\\Format\\Ini', '4.0');
Expand Down
14 changes: 14 additions & 0 deletions libraries/extensions.classmap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
/**
* @package Joomla.Libraries
*
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/

// No direct access.
defined('_JEXEC') or die;

// Class map of the core extensions
JLoader::registerAlias('FieldsPlugin', '\\Joomla\\Component\\Fields\\Administrator\\Plugin\\FieldsPlugin', '4.0');
JLoader::registerAlias('FieldsListPlugin', '\\Joomla\\Component\\Fields\\Administrator\\Plugin\\FieldsListPlugin', '4.0');

0 comments on commit 0a0a7e1

Please sign in to comment.