Skip to content

Commit

Permalink
Fix markdown line length limit and wording fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sovetski authored Apr 23, 2024
1 parent 45650e1 commit a3cd47a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/storage/flysystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ vich_uploader:
### Issues with adapters public url
If you are using certain adapters like S3, Cloudflare, etc., the generated public URL for assets may be incorrect.
To resolve this, you can create your own [custom storage](https://github.com/dustin10/VichUploaderBundle/blob/master/docs/storage/custom.md) by extending the existing FlysystemStorage and adding this function:
To resolve this, you can create your own
[custom storage](https://github.com/dustin10/VichUploaderBundle/blob/master/docs/storage/custom.md)
by duplicating the existing FlysystemStorage and adding this function:
```php
public function resolveUri(object|array $obj, ?string $fieldName = null, ?string $className = null): ?string
Expand All @@ -81,7 +83,8 @@ To resolve this, you can create your own [custom storage](https://github.com/dus
}
```

Be careful with that; if you have existing implementations, it can break them. See [there](https://github.com/dustin10/VichUploaderBundle/pull/1441).
Be careful with that; if you have existing implementations,
it can break them. See [there](https://github.com/dustin10/VichUploaderBundle/pull/1441).

## Integrating with [oneup/flysystem-bundle](https://github.com/1up-lab/OneupFlysystemBundle)

Expand Down

0 comments on commit a3cd47a

Please sign in to comment.