Пример #1
0
 public static function task($name, $file, $spec)
 {
     $out = \pantr\fileNameTransform($file, $spec);
     $task = new File($name, 'create file ' . basename($out) . ' if it does not exist');
     $task->src = $file;
     $task->target = $out;
     pantr::getTaskRepository()->registerTask($task);
     return $task;
 }