Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Warxcell committed Sep 2, 2021
1 parent c9fdc97 commit 0ee3214
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ services:
- "/directory/for/files/"

League\Flysystem\Filesystem:
arguments:
- "@files_local_adapter"
- "@files_local_adapter"

League\Flysystem\FilesystemOperator:
alias: League\Flysystem\Filesystem
Expand All @@ -141,15 +140,18 @@ services:

Arxy\FilesBundle\NamingStrategy\IdToPathStrategy: ~
Arxy\FilesBundle\NamingStrategy\AppendExtensionStrategy:
arguments:
- '@Arxy\FilesBundle\NamingStrategy\IdToPathStrategy'
- '@Arxy\FilesBundle\NamingStrategy\IdToPathStrategy'

Arxy\FilesBundle\NamingStrategy:
alias: Arxy\FilesBundle\NamingStrategy\AppendExtensionStrategy

Arxy\FilesBundle\Storage\FlysystemStorage: ~

Arxy\FilesBundle\Storage:
alias: 'Arxy\FilesBundle\Storage\FlysystemStorage'

Arxy\FilesBundle\Manager:
arguments:
$class: 'App\Entity\File'
$class: 'App\Entity\File'

Arxy\FilesBundle\ManagerInterface:
alias: Arxy\FilesBundle\Manager
Expand Down Expand Up @@ -969,4 +971,4 @@ Currently, only image preview generator exists. You can add your own image previ

- If file entity is deleted within transaction and transaction is rolled back - file will be deleted.
- Currently, files are deleted on `preRemove` event, since if `postRemove` is used in combination
with `IdToPathStrategy` - that results in bug, because Doctrine nulls the `id` after deletion.
with `IdToPathStrategy` - that results in bug, because Doctrine nulls the `id` after deletion.

0 comments on commit 0ee3214

Please sign in to comment.