1 | <?php |
||
19 | final class VersionsCheckPlugin implements PluginInterface, EventSubscriberInterface |
||
20 | { |
||
21 | const COMPOSER_MIN_VERSION = '1.0.0'; |
||
22 | |||
23 | /** |
||
24 | * @var Composer |
||
25 | */ |
||
26 | private $composer; |
||
27 | |||
28 | /** |
||
29 | * @var IOInterface |
||
30 | */ |
||
31 | private $io; |
||
32 | |||
33 | /** |
||
34 | * @var VersionsCheck |
||
35 | */ |
||
36 | private $versionsCheck; |
||
37 | |||
38 | /** |
||
39 | * @var bool |
||
40 | */ |
||
41 | private $preferLowest; |
||
42 | |||
43 | /** |
||
44 | * @var array |
||
45 | */ |
||
46 | private $options = array(); |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function activate(Composer $composer, IOInterface $io) |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | public static function getSubscribedEvents() |
||
90 | |||
91 | /** |
||
92 | * @return bool |
||
93 | */ |
||
94 | public static function satisfiesComposerVersion() |
||
103 | |||
104 | /** |
||
105 | * @param CommandEvent $event |
||
106 | */ |
||
107 | public function command(CommandEvent $event) |
||
112 | |||
113 | /** |
||
114 | * @param Event $event |
||
115 | */ |
||
116 | public function postUpdate(Event $event) |
||
124 | |||
125 | /** |
||
126 | * Tries to get plugin options and resolves them. |
||
127 | * |
||
128 | * @return array |
||
129 | */ |
||
130 | private function resolveOptions() |
||
149 | |||
150 | /** |
||
151 | * @param RepositoryManager $repositoryManager |
||
152 | * @param RootPackageInterface $rootPackage |
||
153 | */ |
||
154 | private function checkVersions(RepositoryManager $repositoryManager, RootPackageInterface $rootPackage) |
||
166 | } |
||
167 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.