Skip to content
Snippets Groups Projects
Commit 5a07ad08 authored by Kevin Hill's avatar Kevin Hill
Browse files

adding LavaLoader to get around manually requiring files in the lavacharts...

adding LavaLoader to get around manually requiring files in the lavacharts class. Enabling the use of the library outside of composer. #227
parent bdf0bd81
No related branches found
No related tags found
No related merge requests found
<?php
namespace Khill\Lavacharts;
use Khill\Lavacharts\Support\Psr4Autoloader;
/**
* LavaLoader is a wrapper around the Psr4 autoloader to enable the use of Lavacharts without having to use Composer.
*
*
* @package Khill\Lavacharts
* @author Kevin Hill <kevinkhill@gmail.com>
* @copyright (c) 2017, KHill Designs
* @link http://github.com/kevinkhill/lavacharts GitHub Repository Page
* @link http://lavacharts.com Official Docs Site
* @license http://opensource.org/licenses/MIT MIT
*/
class LavaLoader
{
public static function register()
{
require_once(__DIR__ . '/Support/Psr4Autoloader.php');
$loader = new Psr4Autoloader;
$loader->register();
$loader->addNamespace('Khill\Lavacharts', __DIR__);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment