frostiede / eventable-flysystem
1.0.0
2018-08-04 13:26 UTC
Requires
- php: ^7.1 || ^7.2
- league/flysystem: ^1.0
- symfony/event-dispatcher: ^4.1
Requires (Dev)
- phpunit/phpunit: ^7.3
This package is auto-updated.
Last update: 2024-12-16 19:46:27 UTC
README
This is a Filesystem implementation which dispatches events on any call to the underlying filesystem.
In contrast to flysystem-eventable-filesystem this implementation can be used with Symfonys EventDispatcher.
Composer
$ composer require frostiede/eventable-flysystem
Usage
$adapter = new Local('./uploads'); # use League\Flysystem\Adapter\Local
$dispatcher = new EventDispatcher(); # use Symfony\Component\EventDispatcher\EventDispatcher
$filesystem = new EventableFilesystem($dispatcher, $adapter);
Of course, your $adapter
can be any adapter 😉
Contribution
Feel free to contribute :-)
License
MIT