Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / consolidation / robo / src / Task / File / loadTasks.php
1 <?php
2 namespace Robo\Task\File;
3
4 trait loadTasks
5 {
6     /**
7      * @param array|\Iterator $files
8      *
9      * @return \Robo\Task\File\Concat
10      */
11     protected function taskConcat($files)
12     {
13         return $this->task(Concat::class, $files);
14     }
15
16     /**
17      * @param string $file
18      *
19      * @return \Robo\Task\File\Replace
20      */
21     protected function taskReplaceInFile($file)
22     {
23         return $this->task(Replace::class, $file);
24     }
25
26     /**
27      * @param string $file
28      *
29      * @return \Robo\Task\File\Write
30      */
31     protected function taskWriteToFile($file)
32     {
33         return $this->task(Write::class, $file);
34     }
35
36     /**
37      * @param string $filename
38      * @param string $extension
39      * @param string $baseDir
40      * @param bool $includeRandomPart
41      *
42      * @return \Robo\Task\File\TmpFile
43      */
44     protected function taskTmpFile($filename = 'tmp', $extension = '', $baseDir = '', $includeRandomPart = true)
45     {
46         return $this->task(TmpFile::class, $filename, $extension, $baseDir, $includeRandomPart);
47     }
48 }