Initial commit
This commit is contained in:
22
src/Plugin.php
Normal file
22
src/Plugin.php
Normal 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);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user