Kraken\Filesystem\Filesystem::__construct PHP Method

__construct() public method

public __construct ( League\Flysystem\AdapterInterface $adapter )
$adapter League\Flysystem\AdapterInterface
    public function __construct(LeagueAdapterInterface $adapter)
    {
        try {
            $this->fs = new LeagueFilesystem($adapter);
        } catch (Error $ex) {
            throw new InstantiationException('Filesystem could not be initialized.', $ex);
        } catch (Exception $ex) {
            throw new InstantiationException('Filesystem could not be initialized.', $ex);
        }
    }