protected function getAdapter(array $config)
    {
        // Pull parameters from config and set defaults for optional values
        $path = $config['path'];
        $writeFlags = array_get($config, 'write_flags', LOCK_EX);
        $linkHandling = array_get($config, 'link_handling', Local::DISALLOW_LINKS);
        $permissions = array_get($config, 'permissions', []);

        return new Local($path, $writeFlags, $linkHandling, $permissions);
    }