|
6 | 6 |
|
7 | 7 | use Composer\Autoload\AutoloadGenerator;
|
8 | 8 | use Composer\Composer;
|
9 |
| -use Composer\EventDispatcher\EventDispatcher; |
10 | 9 | use Composer\Filter\PlatformRequirementFilter\PlatformRequirementFilterFactory;
|
11 |
| -use Composer\IO\ConsoleIO; |
12 |
| -use Composer\IO\IOInterface; |
13 |
| -use Composer\IO\NullIO; |
14 |
| -use Composer\PartialComposer; |
15 | 10 | use Inpsyde\VipComposer\Config;
|
16 | 11 | use Inpsyde\VipComposer\Utils\InstalledPackages;
|
17 | 12 | use Inpsyde\VipComposer\Io;
|
18 | 13 | use Inpsyde\VipComposer\VipDirectories;
|
19 |
| -use Seld\JsonLint\ParsingException; |
20 | 14 |
|
21 | 15 | final class GenerateProductionAutoload implements Task
|
22 | 16 | {
|
@@ -74,7 +68,6 @@ public function run(Io $io, TaskConfig $taskConfig): void
|
74 | 68 | /**
|
75 | 69 | * @param Io $io
|
76 | 70 | * @return void
|
77 |
| - * @throws ParsingException |
78 | 71 | */
|
79 | 72 | private function doRun(?Io $io): void
|
80 | 73 | {
|
@@ -131,10 +124,8 @@ private function factoryAutoloadGenerator(): AutoloadGenerator
|
131 | 124 | $autoloader->setClassMapAuthoritative(true);
|
132 | 125 | $autoloader->setApcu(false);
|
133 | 126 | $autoloader->setRunScripts(false);
|
134 |
| - if (class_exists(PlatformRequirementFilterFactory::class)) { |
135 |
| - $filter = PlatformRequirementFilterFactory::ignoreNothing(); |
136 |
| - $autoloader->setPlatformRequirementFilter($filter); |
137 |
| - } |
| 127 | + $filter = PlatformRequirementFilterFactory::ignoreNothing(); |
| 128 | + $autoloader->setPlatformRequirementFilter($filter); |
138 | 129 |
|
139 | 130 | return $autoloader;
|
140 | 131 | }
|
|
0 commit comments