Skip to content

Commit

Permalink
[namespacce] Namespace JAccess* (#13952)
Browse files Browse the repository at this point in the history
* Move JAccess to namespace

* Fix some minor stuff and delete JRule and JRules
  • Loading branch information
laoneo authored and wilsonge committed Feb 14, 2017
1 parent 7682019 commit 739e62d
Show file tree
Hide file tree
Showing 13 changed files with 212 additions and 269 deletions.
8 changes: 8 additions & 0 deletions libraries/classmap.php
Expand Up @@ -45,3 +45,11 @@
JLoader::registerAlias('JTableObserver', '\\Joomla\\Cms\\Table\\Observer\\AbstractObserver', '4.0');
JLoader::registerAlias('JTableObserverContenthistory', '\\Joomla\\Cms\\Table\\Observer\\ContentHistory', '4.0');
JLoader::registerAlias('JTableObserverTags', '\\Joomla\\Cms\\Table\\Observer\\Tags', '4.0');

JLoader::registerAlias('JAccess', '\\Joomla\\Cms\\Access\\Access', '4.0');
JLoader::registerAlias('JAccessRule', '\\Joomla\\Cms\\Access\\Rule', '4.0');
JLoader::registerAlias('JAccessRules', '\\Joomla\\Cms\\Access\\Rules', '4.0');
JLoader::registerAlias('JAccessWrapperAccess', '\\Joomla\\Cms\\Access\\Wrapper\\Access', '4.0');
JLoader::registerAlias('JAccessExceptionNotallowed', '\\Joomla\\Cms\\Access\\Exception\\Notallowed', '4.0');
JLoader::registerAlias('JRule', '\\Joomla\\Cms\\Access\\Rule', '4.0');
JLoader::registerAlias('JRules', '\\Joomla\\Cms\\Access\\Rules', '4.0');
2 changes: 0 additions & 2 deletions libraries/import.legacy.php
Expand Up @@ -80,8 +80,6 @@
JLoader::register('JObservable', JPATH_PLATFORM . '/legacy/base/observable.php');
JLoader::register('LogException', JPATH_PLATFORM . '/legacy/log/logexception.php');
JLoader::register('JXMLElement', JPATH_PLATFORM . '/legacy/utilities/xmlelement.php');
JLoader::register('JRule', JPATH_PLATFORM . '/legacy/access/rule.php');
JLoader::register('JRules', JPATH_PLATFORM . '/legacy/access/rules.php');
JLoader::register('JCli', JPATH_PLATFORM . '/legacy/application/cli.php');
JLoader::register('JDaemon', JPATH_PLATFORM . '/legacy/application/daemon.php');
JLoader::register('JApplication', JPATH_LIBRARIES . '/legacy/application/application.php');
19 changes: 0 additions & 19 deletions libraries/joomla/access/exception/notallowed.php

This file was deleted.

36 changes: 0 additions & 36 deletions libraries/legacy/access/rule.php

This file was deleted.

36 changes: 0 additions & 36 deletions libraries/legacy/access/rules.php

This file was deleted.

0 comments on commit 739e62d

Please sign in to comment.