Lue dans les fichiers PHP du paquet au commit f5225447a457 : ses espaces de noms, classes, interfaces et énumérations, leurs constantes, propriétés et méthodes publiques avec leur PHPDoc, et les options que prennent ses fabriques. Rien n’en est exécuté.
WebdavDriveFactoryclassA collection of a WebDAV server - Nextcloud, ownCloud, Apache's mod_dav, nginx, any - through league/flysystem-webdav (sabre/dav's client, cURL):
5 options
Omnidrive\Webdav
WebdavDriveFactory class
final class WebdavDriveFactory extends FlysystemDriveFactory WebdavDriveFactory.php:31
A collection of a WebDAV server - Nextcloud, ownCloud, Apache's mod_dav, nginx, any - through league/flysystem-webdav (sabre/dav's client, cURL):
(new WebdavDriveFactory())->create(['base_uri' => 'https://cloud.example.org/remote.php/dav/files/site/', 'username' => 'site', 'password' => '...']);
Options: base_uri (required: the collection behind the drive's paths, with its trailing slash; Nextcloud's and ownCloud's is https://<host>/remote.php/dav/files/<user>/), username and password (an application password on Nextcloud), auth (basic, digest, ntlm or any: the scheme asked first - "any" lets cURL find it at the cost of a request), prefix (every path under it), proxy, manual_copy and manual_move (a server that does not do COPY or MOVE: the file read and written again), public_url (else the file's WebDAV address, served to whoever the server serves it to).
WebDAV keeps no visibility of its own: writing with one is accepted and ignored, reading or changing it is a DriveException. Nothing is sent until the first operation.
Options
| Option | Default | |
|---|---|---|
auth | 'basic' | |
prefix | '' | |
manual_copy | false | |
manual_move | false | |
base_uri | required |