include.php
885 Bytes
<?php
/**
* @package AllediaFramework
* @contact www.alledia.com, hello@alledia.com
* @copyright 2016 Alledia.com, All rights reserved
* @license http://www.gnu.org/licenses/gpl.html GNU/GPL
*/
use Alledia\Framework\AutoLoader;
defined('_JEXEC') or die();
if (!defined('ALLEDIA_FRAMEWORK_LOADED')) {
define('ALLEDIA_FRAMEWORK_LOADED', 1);
define('ALLEDIA_FRAMEWORK_PATH', __DIR__);
// Setup autoloaded libraries
if (!class_exists('\\Alledia\\Framework\\AutoLoader')) {
require_once ALLEDIA_FRAMEWORK_PATH . '/Framework/AutoLoader.php';
}
AutoLoader::register('\\Alledia\\Framework', ALLEDIA_FRAMEWORK_PATH . '/Framework');
}
// Backward compatibility with the old autoloader. Avoids to break a legacy system plugin running while installing.
if (!class_exists('AllediaPsr4AutoLoader')) {
require_once "AllediaPsr4AutoLoader.php";
}