frostiede/eventable-flysystem

1.0.0 2018-08-04 13:26 UTC

This package is auto-updated.

Last update: 2024-11-16 19:44:29 UTC


README

Build Status

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