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);
}
}