1 | <?php |
||
5 | class UpgradePath extends BuildTask |
||
|
|||
6 | { |
||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | protected $title = "Upgrade Path checker"; |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $description = 'Checks if which composer dependencies hold your SilverStripe framework upgrade back.'; |
||
16 | |||
17 | /** |
||
18 | * @param SS_HTTPRequest $request |
||
19 | */ |
||
20 | public function run($request) |
||
40 | |||
41 | /** |
||
42 | * for now just return a list of the interesting versions. Later a proper list of all newer versions would be great. |
||
43 | * |
||
44 | * @return array |
||
45 | */ |
||
46 | public function getReleases() |
||
50 | |||
51 | /** |
||
52 | * returns a prepared list of the packages. |
||
53 | * |
||
54 | * parses the following output for convienence reasons: |
||
55 | * |
||
56 | * $ peter@petert-lp /var/www/project (master) $ composer why-not silverstripe/framework:3.3.0 |
||
57 | * $ nglasl/silverstripe-misdirection dev-master requires silverstripe/framework (3.1.*) |
||
58 | * $ silverstripe/sqlite3 1.3.x-dev requires silverstripe/framework (>=3.0,<3.2) |
||
59 | * $ silverstripe/widgets 1.1.x-dev requires silverstripe/framework (3.1.*) |
||
60 | * $ unclecheese/display-logic 1.2.x-dev requires silverstripe/framework (3.1.*) |
||
61 | * |
||
62 | * @param string $release |
||
63 | * |
||
64 | * @return array |
||
65 | */ |
||
66 | public function getBlockers($release) |
||
110 | |||
111 | /** |
||
112 | * @var boolean |
||
113 | */ |
||
114 | protected function isCLI() |
||
118 | |||
119 | /** |
||
120 | * prints a message during the run of the task |
||
121 | * |
||
122 | * @param string $text |
||
123 | */ |
||
124 | protected function message($text) |
||
132 | } |
||
133 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.