Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzap committed Apr 12, 2024
1 parent c0b36e3 commit d6a11f4
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/Task/GenerateProductionAutoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,11 @@

use Composer\Autoload\AutoloadGenerator;
use Composer\Composer;
use Composer\EventDispatcher\EventDispatcher;
use Composer\Filter\PlatformRequirementFilter\PlatformRequirementFilterFactory;
use Composer\IO\ConsoleIO;
use Composer\IO\IOInterface;
use Composer\IO\NullIO;
use Composer\PartialComposer;
use Inpsyde\VipComposer\Config;
use Inpsyde\VipComposer\Utils\InstalledPackages;
use Inpsyde\VipComposer\Io;
use Inpsyde\VipComposer\VipDirectories;
use Seld\JsonLint\ParsingException;

final class GenerateProductionAutoload implements Task
{
Expand Down Expand Up @@ -74,7 +68,6 @@ public function run(Io $io, TaskConfig $taskConfig): void
/**
* @param Io $io
* @return void
* @throws ParsingException
*/
private function doRun(?Io $io): void
{
Expand Down Expand Up @@ -131,10 +124,8 @@ private function factoryAutoloadGenerator(): AutoloadGenerator
$autoloader->setClassMapAuthoritative(true);
$autoloader->setApcu(false);
$autoloader->setRunScripts(false);
if (class_exists(PlatformRequirementFilterFactory::class)) {
$filter = PlatformRequirementFilterFactory::ignoreNothing();
$autoloader->setPlatformRequirementFilter($filter);
}
$filter = PlatformRequirementFilterFactory::ignoreNothing();
$autoloader->setPlatformRequirementFilter($filter);

return $autoloader;
}
Expand Down

0 comments on commit d6a11f4

Please sign in to comment.