Skip to content

taskphp/watch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

task/watch

Build Status Coverage Status

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages