示例#1
0
 public function __construct($source = null)
 {
     if (!$source) {
         $source = implode(DIRECTORY_SEPARATOR, array(__DIR__, '..', '..', '..', 'data', 'zones'));
     }
     if (is_file($source)) {
         throw new LoaderException("Zones source is file");
     }
     parent::__construct($source);
 }
示例#2
0
 public function __construct($source, GatewaysLoader $gateways_loader = null)
 {
     parent::__construct($source);
     // TODO: Change the autogenerated stub
     $this->gates_loader = $gateways_loader;
 }