Pressroom template verwijderd, website naar root van repo
This commit is contained in:
1 parent
2cb6a77425
commit
f3d1c41e91
7620 files changed
-186900
No files matched your search
@@ -0,0 +1,23 @@
|
||||
---
|
||||
layout: default
|
||||
permalink: /adapter/replicate/
|
||||
title: Replicate Adapter
|
||||
---
|
||||
|
||||
# Replicate Adapter
|
||||
|
||||
## Installation
|
||||
|
||||
~~~ bash
|
||||
composer require league/flysystem-replicate-adapter
|
||||
~~~
|
||||
|
||||
## Usage
|
||||
|
||||
The `ReplicateAdapter` facilitates smooth transitions between adapters, allowing an application to stay functional and migrate its files from one adapter to another. The adapter takes two other adapters, a source and a replica. Every change is delegated to both adapters, while all the read operations are passed onto the source only.
|
||||
|
||||
~~~ php
|
||||
$source = new League\Flysystem\AwsS3V3\AwsS3Adapter(...);
|
||||
$replica = new League\Flysystem\Adapter\Local(...);
|
||||
$adapter = new League\Flysystem\Replicate\ReplicateAdapter($source, $replica);
|
||||
~~~
|
||||
Reference in new issue
Block a user