task / watch
Filesystem watching for Task
v0.2.0
2014-05-13 08:02 UTC
Requires
- mbfisher/watch: ~0.1
- task/plugin: ~1.1
Requires (Dev)
- ext-runkit: *
- satooshi/php-coveralls: ~0.6
- task/phpunit: ~0.1
- task/task: ~0.1
This package is not auto-updated.
Last update: 2024-12-21 17:17:17 UTC
README
Example
use Task\Plugin\WatchPlugin; $project->inject(function ($container) { $container['watch'] = new WatchPlugin; }); $project->addTask('watch', ['watch', function ($watch) { $watch->init('/tmp') ->addListener('modify', function ($event) { # Do something }); }]);
Installation
Add to composer.json
:
... "require-dev": { "task/watch": "~0.1" } ...
Usage
See the documentation for mbfisher/watch for documentation on using the watchers.