Skip to content
This repository was archived by the owner on Feb 8, 2019. It is now read-only.

Commit f83b30e

Browse files
committed
Update JSON Provider
1 parent e742313 commit f83b30e

File tree

1 file changed

+5
-0
lines changed
  • src/VectorNetworkProject/TheMix/provider

1 file changed

+5
-0
lines changed

src/VectorNetworkProject/TheMix/provider/JSON.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ public function __construct(string $xuid, string $file)
3131
$this->file = $file . '.json';
3232
}
3333

34+
public function init(array $data = []): void
35+
{
36+
if (!$this->hasTable()) $this->createTable($data);
37+
}
38+
3439
/**
3540
* @param array $table
3641
* @return void

0 commit comments

Comments
 (0)