public function __construct($app, Filesystem $fs)
{
$this->app = $app;
$this->fs = $fs;
$json_parser = new JsonParser();
$this->extensions = ['json' => function ($raw) use($json_parser) {
$parsed = $json_parser->parse($raw);
return $parsed;
}, 'yml' => function ($raw) {
$parsed = Yaml::parse($raw, false, false, true);
return $parsed;
}];
$this->index();
$this->parse();
}