frostiede/eventable-flysystem

Installs: 9

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/frostiede/eventable-flysystem

1.0.0 2018-08-04 13:26 UTC

This package is auto-updated.

Last update: 2025-10-16 21:39:43 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