You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once this is done, you may pass the `readonly` parameter to the adapter configuration and set it to `true`.
147
147
148
-
```php src/data-snapshots.storage.confg.php
148
+
```php src/data-snapshots.storage.config.php
149
149
return new S3StorageConfig(
150
150
tag: StorageLocation::DATA_SNAPSHOTS,
151
151
readonly: true,
@@ -156,6 +156,18 @@ return new S3StorageConfig(
156
156
);
157
157
```
158
158
159
+
### Custom storage
160
+
161
+
If you need to implement your own adapter for an unsupported provider, you may do so by implementing the `League\Flysystem\FilesystemAdapter` interface.
162
+
163
+
Tempest provides a {b`Tempest\Storage\Config\CustomStorageConfig`} configuration object which accepts any `FilesystemAdapter`, which will be resolved through the container.
164
+
165
+
```php src/custom-storage.config.php
166
+
return new CustomStorageConfig(
167
+
adapter: App\MyCustomFilesystemAdapter::class,
168
+
);
169
+
```
170
+
159
171
## Testing
160
172
161
173
By extending {`Tempest\Framework\Testing\IntegrationTest`} from your test case, you gain access to the storage testing utilities through the `storage` property.
0 commit comments