1 | <?php |
||
19 | final class VersionsCheckPlugin implements PluginInterface, EventSubscriberInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var Composer |
||
23 | */ |
||
24 | private $composer; |
||
25 | |||
26 | /** |
||
27 | * @var IOInterface |
||
28 | */ |
||
29 | private $io; |
||
30 | |||
31 | /** |
||
32 | * @var VersionsCheck |
||
33 | */ |
||
34 | private $versionsCheck; |
||
35 | |||
36 | /** |
||
37 | * @var bool |
||
38 | */ |
||
39 | private $preferLowest; |
||
40 | |||
41 | /** |
||
42 | * @var array |
||
43 | */ |
||
44 | private $options = array(); |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function activate(Composer $composer, IOInterface $io) |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function deactivate(Composer $composer, IOInterface $io) |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | public function uninstall(Composer $composer, IOInterface $io) |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | public static function getSubscribedEvents() |
||
85 | |||
86 | public function command(CommandEvent $event) |
||
91 | |||
92 | public function postUpdate(Event $event) |
||
100 | |||
101 | /** |
||
102 | * Tries to get plugin options and resolves them. |
||
103 | * |
||
104 | * @return array |
||
105 | */ |
||
106 | private function resolveOptions() |
||
125 | |||
126 | private function checkVersions(RepositoryManager $repositoryManager, RootPackageInterface $rootPackage) |
||
138 | } |
||
139 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.