hedronium\Jables\Loader::__construct PHP Method

__construct() public method

public __construct ( $app, Illuminate\Filesystem\Filesystem $fs )
$fs Illuminate\Filesystem\Filesystem
    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();
    }