hedronium\Jables\Prettifyer::__construct PHP Method

__construct() public method

public __construct ( $app, Illuminate\Filesystem\Filesystem $fs, Loader $loader )
$fs Illuminate\Filesystem\Filesystem
$loader Loader
    public function __construct($app, Filesystem $fs, Loader $loader)
    {
        $this->app = $app;
        $this->fs = $fs;
        $this->loader = $loader;
        $path = $this->app->databasePath() . '/' . config('jables.folder');
        if (!$this->fs->isWritable($path)) {
            throw new \Exception($path . ' isn\' writable.');
        }
        $this->buildFileList();
    }