Jarves\Filesystem\WebFilesystem::newAdapter PHP Method

newAdapter() public method

public newAdapter ( string $serviceId, string $mountPath, array $params ) : Jarves\Filesystem\Adapter\AdapterInterface
$serviceId string
$mountPath string
$params array
return Jarves\Filesystem\Adapter\AdapterInterface
    public function newAdapter($serviceId, $mountPath, $params)
    {
        $service = $this->container->get($serviceId);
        $service->setMountPath($mountPath);
        $service->setParams($params);
        return $service;
    }