<?php

/* 
 * The Black Sheep Research Plugin for setting namespace in Joomla < v4
 * 
 * This plugin sets the namespace connection
 * 
 * Copyright (c) 2024 Black Sheep Research
 * Author: Martin Brampton martin@black-sheep-research.com
 * Web: https://black-sheep-research.com
 * License: GNU General Public License version 2
 */

use Joomla\CMS\Plugin\CMSPlugin;

\defined('_JEXEC') or die;

class PlgSystemUp_namespace extends CMSPlugin {

    private $paths = array();
    private $user = null;
    public $params = null;

    public function onAfterInitialise() {
        \JLoader::registerNamespace('BlackSheepResearch\\Component\\UserPoints\\Site', JPATH_SITE . '/components/com_userpoints/src', false, false, 'psr4');
    }

}
