frostiede / eventable-flysystem-bundle
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.1|^7.2
- frostiede/eventable-flysystem: ^1.0
- oneup/flysystem-bundle: ^3.0
- symfony/framework-bundle: ^3.3|^4.0
Requires (Dev)
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2024-12-16 20:28:40 UTC
README
This bundle integrates the eventable-flysystem with Symfony (3 and 4).
Installation
$ composer require frostiede/eventable-flysystem-bundle
Configuration
Add the following config:
eventable_flysystem:
filesystems:
- oneup_flysystem.your_filesystem
- oneup_flysystem.another_filesystem
event_dispatcher: 'event_dispatcher'
You may add filesystems which are configured on the OneupFlysystemBundle by their id. The filesystems are converted
to an instance of EventableFilesystem
by this bundle.
If you use the default EventDispatcher
you may not specify event_dispatcher
. Otherwise, you need to put
the Id of the EventDispatcher
instance you want to use with the EventableFilesystem
into the event_dispatcher
key.
Usage
Just use the filesystem as you would do only with the OneupFlysystemBundle. But in addition, you can subscribe to any
events the EventableFilesystem
may dispatch.
Contribute
Feel free to contribute :-)
License
MIT