-
Notifications
You must be signed in to change notification settings - Fork 2
/
legacymvc.php
39 lines (36 loc) · 1.09 KB
/
legacymvc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* @package Joomla.Plugin
* @subpackage System.LegacyMVC
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\Plugin\CMSPlugin;
/**
* Joomla! Legacy MVC plugin.
*
* @since 4.0
*/
class PlgSystemLegacyMVC extends CMSPlugin
{
/**
* Register legacy MVC classes in the autoloader.
*
* @return void
*
* @since 4.0
*/
public function onAfterInitialise()
{
JLoader::register('JController', __DIR__ . '/src/controller/controller.php');
JLoader::register('JControllerBase', __DIR__ . '/src/controller/base.php');
JLoader::register('JModel', __DIR__ . '/src/model/model.php');
JLoader::register('JModelBase', __DIR__ . '/src/model/base.php');
JLoader::register('JModelDatabase', __DIR__ . '/src/model/database.php');
JLoader::register('JView', __DIR__ . '/src/view/view.php');
JLoader::register('JViewBase', __DIR__ . '/src/view/base.php');
JLoader::register('JViewHtml', __DIR__ . '/src/view/html.php');
}
}