1 | <?php //phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase |
||
29 | class CustomAutoloaderPlugin implements PluginInterface, EventSubscriberInterface { |
||
30 | |||
31 | /** |
||
32 | * IO object. |
||
33 | * |
||
34 | * @var IOInterface IO object. |
||
35 | */ |
||
36 | private $io; |
||
37 | |||
38 | /** |
||
39 | * Composer object. |
||
40 | * |
||
41 | * @var Composer Composer object. |
||
42 | */ |
||
43 | private $composer; |
||
44 | |||
45 | /** |
||
46 | * Do nothing. |
||
47 | * |
||
48 | * @param Composer $composer Composer object. |
||
49 | * @param IOInterface $io IO object. |
||
50 | */ |
||
51 | public function activate( Composer $composer, IOInterface $io ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable |
||
55 | |||
56 | /** |
||
57 | * Do nothing. |
||
58 | * phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable |
||
59 | * |
||
60 | * @param Composer $composer Composer object. |
||
61 | * @param IOInterface $io IO object. |
||
62 | */ |
||
63 | public function deactivate( Composer $composer, IOInterface $io ) { |
||
69 | |||
70 | /** |
||
71 | * Do nothing. |
||
72 | * phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable |
||
73 | * |
||
74 | * @param Composer $composer Composer object. |
||
75 | * @param IOInterface $io IO object. |
||
76 | */ |
||
77 | public function uninstall( Composer $composer, IOInterface $io ) { |
||
83 | |||
84 | |||
85 | /** |
||
86 | * Tell composer to listen for events and do something with them. |
||
87 | * |
||
88 | * @return array List of subscribed events. |
||
89 | */ |
||
90 | public static function getSubscribedEvents() { |
||
95 | |||
96 | /** |
||
97 | * Generate the custom autolaoder. |
||
98 | * |
||
99 | * @param Event $event Script event object. |
||
100 | */ |
||
101 | public function postAutoloadDump( Event $event ) { |
||
126 | |||
127 | } |
||
128 |