Se agrega seccion de evento

This commit is contained in:
2020-04-28 23:52:56 -04:00
parent a878d6bc77
commit 2a34fa368e
97 changed files with 275 additions and 67 deletions

View File

@ -0,0 +1,18 @@
<?php
namespace ProVM\TotalSport\Common\Service;
use Spyc;
class DataHandler {
protected $folder;
public function __construct(string $data_folder) {
$this->folder = $data_folder;
}
public function load(string $file_name) {
$filename = implode(DIRECTORY_SEPARATOR, [
$this->folder,
$file_name . '.yml'
]);
return json_decode(json_encode(Spyc::YAMLLoad($filename)));
}
}