<?php
/**
 * @version        4.3.0
 * @package        Joomla
 * @subpackage     Helpdesk Pro
 * @author         Tuan Pham Ngoc
 * @copyright      Copyright (C) 2013 - 2021 Ossolution Team
 * @license        GNU/GPL, see LICENSE.php
 */

// no direct access
defined('_JEXEC') or die;

//echo '<pre>';
////var_dump(JFactory::getApplication()->input->get('task'));
//var_dump(JFactory::getApplication()->input);
//echo '</pre>';
//exit();

// Bootstrap the component
require_once JPATH_ADMINISTRATOR . '/components/com_helpdeskpro/init.php';

// Get component config data
$config = require JPATH_ADMINISTRATOR . '/components/com_helpdeskpro/config.php';

// Creating component container
$container = OSL\Container\Container::getInstance('com_helpdeskpro', $config);

// Create controller, execute the request and redirect to the requested page if it is set
$controller = OSL\Controller\Controller::getInstance($container);
//echo '<pre>';
//var_dump($controller);
//echo '</pre>';
//exit();
$controller->execute()
	->redirect();

