Initial commit

This commit is contained in:
2016-12-22 03:15:02 +01:00
commit 58f27830f4
20 changed files with 654 additions and 0 deletions

22
src/Plugin.php Normal file
View File

@ -0,0 +1,22 @@
<?php
namespace VfxApply;
class Plugin
{
protected function createDialog($type, $title=null)
{
switch ($type) {
case DIALOG_PROGRESS:
return new Dialog\ProgressDialog($title);
default:
throw new \Exception("Error, undefined dialog type {$type}");
}
}
protected function createProcess($command, callable $callback)
{
return new Process($command, $callback);
}
}