<?php
require_once __DIR__ . '/vendor/autoload.php';
trait StandAlone {
private static $obj = null;
static public function getInstance()
{
if (is_null(self::$obj))
self::$obj = new self;
return self::$obj;
}
}
class Config {
use StandAlone;
public $baseURL = 'https://www.amphoragames.com/core/';
static public function baseURL($str) {
return self::getInstance()->baseURL . trim($str, '/');
}
}