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();
         }
     }
 }
Beispiel #2
0
 public static function reLoad()
 {
     self::$active = PagSeguroConfig::logIsActive();
     if (self::$active) {
         $logFile = PagSeguroConfig::getLogFileLocation();
         if (!empty($logFile)) {
             self::createFile($logFile);
         } else {
             self::createFile();
         }
     }
 }
 private function __construct()
 {
     self::$active = PagSeguroConfig::logIsActive();
     if (self::$active) {
         $fileLocation = PagSeguroConfig::getLogFileLocation();
         if (file_exists($fileLocation) && is_file($fileLocation)) {
             self::$fileLocation = $fileLocation;
         } else {
             self::createFile();
         }
     }
 }