Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / consolidation / robo / src / Task / Development / loadTasks.php
1 <?php
2 namespace Robo\Task\Development;
3
4 trait loadTasks
5 {
6     /**
7      * @param string $filename
8      *
9      * @return Changelog
10      */
11     protected function taskChangelog($filename = 'CHANGELOG.md')
12     {
13         return $this->task(Changelog::class, $filename);
14     }
15
16     /**
17      * @param string $filename
18      *
19      * @return GenerateMarkdownDoc
20      */
21     protected function taskGenDoc($filename)
22     {
23         return $this->task(GenerateMarkdownDoc::class, $filename);
24     }
25
26     /**
27      * @param string $className
28      * @param string $wrapperClassName
29      *
30      * @return \Robo\Task\Development\GenerateTask
31      */
32     protected function taskGenTask($className, $wrapperClassName = '')
33     {
34         return $this->task(GenerateTask::class, $className, $wrapperClassName);
35     }
36
37     /**
38      * @param string $pathToSemVer
39      *
40      * @return SemVer
41      */
42     protected function taskSemVer($pathToSemVer = '.semver')
43     {
44         return $this->task(SemVer::class, $pathToSemVer);
45     }
46
47     /**
48      * @param int $port
49      *
50      * @return PhpServer
51      */
52     protected function taskServer($port = 8000)
53     {
54         return $this->task(PhpServer::class, $port);
55     }
56
57     /**
58      * @param string $filename
59      *
60      * @return PackPhar
61      */
62     protected function taskPackPhar($filename)
63     {
64         return $this->task(PackPhar::class, $filename);
65     }
66
67     /**
68      * @param string $tag
69      *
70      * @return GitHubRelease
71      */
72     protected function taskGitHubRelease($tag)
73     {
74         return $this->task(GitHubRelease::class, $tag);
75     }
76
77     /**
78      * @param string|array $url
79      *
80      * @return OpenBrowser
81      */
82     protected function taskOpenBrowser($url)
83     {
84         return $this->task(OpenBrowser::class, $url);
85     }
86 }