private function __construct() { self::$path = dirname(__FILE__); PagSeguroAutoloader::init(); self::$resources = PagSeguroResources::init(); self::$config = PagSeguroConfig::init(); self::$log = LogPagSeguro::init(); }
public static function reLoad() { self::$active = PagSeguroConfig::logIsActive(); if (self::$active) { $fileLocation = PagSeguroConfig::getLogFileLocation(); if (file_exists($fileLocation) && is_file($fileLocation)) { self::$fileLocation = $fileLocation; } else { self::createFile(); } } }