Пример #1
0
 private function __construct()
 {
     self::$path = dirname(__FILE__);
     PagSeguroAutoloader::init();
     self::$resources = PagSeguroResources::init();
     self::$config = PagSeguroConfig::init();
     self::$log = LogPagSeguro::init();
 }
Пример #2
0
 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();
         }
     }
 }