setName('compile') ->setDescription('Run compilation tasks') ->addOption('all', null, InputOption::VALUE_NONE, 'Run all tasks, regardless of configuration') ->addOption('dry-run', 'N', InputOption::VALUE_NONE, 'Dry-run: Print a list of steps to be run') ->addOption('soft-options', null, InputOption::VALUE_OPTIONAL, '(Internal)') ->addArgument('filterExpr', InputArgument::IS_ARRAY, 'Optional filter to match. Ex: \'vendor/package\' or \'vendor/package:id\'') ->setHelp( "Run compilation steps in all packages\n" . "\n" . "If no filterExpr is given, then it will execute based on the current\n" . "configuration (per composer.json and environment-variables)." ) ; } protected function initialize(InputInterface $input, OutputInterface $output) { $so = $input->getOption('soft-options'); if ($so) { $json = json_decode(base64_decode($so), 1); foreach ($json['o'] ?? [] as $key => $value) { if ($input->hasOption($key)) { $input->setOption($key, $value); } } } parent::initialize($input, $output); } protected function execute(InputInterface $input, OutputInterface $output) { if ($output->isVerbose()) { EnvHelper::set('COMPOSER_COMPILE_PASSTHRU', 'always'); } $taskList = new TaskList($this->getComposer(), $this->getIO()); $taskList->load()->validateAll(); $taskRunner = new TaskRunner($this->getComposer(), $this->getIO()); $filters = $input->getArgument('filterExpr'); if ($input->getOption('all') && !empty($filters)) { throw new \InvalidArgumentException("The --all option does not accept filters."); } elseif ($input->getOption('all')) { $taskRunner->run($taskList->getAll(), $input->getOption('dry-run')); } elseif (!empty($filters)) { $tasks = $taskList->getByFilters($filters); $taskRunner->run( $tasks, $input->getOption('dry-run') ); } else { $taskRunner->runDefault($taskList, $input->getOption('dry-run')); } return 0; } } __halt_compiler();----SIGNATURE:----cCZXvT/0/yKIPLvIpzdflDhd/1/2M2Xjw0AOoDsA+N0hs8R9wL0UX4lAXwM4Xm/7/yZvaI9gxPNlpw0GI7z6DqzkczptM9tn7AOIN3RbaJcsAplL61kMGxlxZKnY2Hw8WbGYQ/OgkmWRC1Wq7d8LLapNBy5NNASrugxgbXFAszLEYyWBfNiRKvnuMbk2mwvRPA0Gx02w6hbDyyYu1/JbH98MYwele90c/rqlSkTEaTLTwBze1/CKgdW0K2XnqUtV//x4OtPSauyhpyGU5ezDtzbB4D/xkVEDwinXAVafNq+jIOP/l1n8n+UeVb2bO7Oo2IXtdhxDz0IiBvRdgJDA7+KtdekfMqrz0trDdKL1SYdKeidMEKjOvxgz323OoUJ8gMzfxDM7YO0zPzuY0Rkt6Nc+lmqrLgRap7RpyZ+DWuYvIWK9WJF4Psfp0AF5yGcKmtyZkCO20k++JkZI/a3NWaVug4ZAY/ZhCJfKEmKK4BuEfjdSVPBk8cuRmBfVDZudamM9Ugn2Hj4cQZtw/zUZWIFtSp78kx731ZHQ3u86tgnR0DB12g7/SxPiicyPcJevrikrnb6bHBnpqKor12l7wpCLnZDPgqg+AFjp3KtXhok6p8OwHyo+DSZ/wQmCFTisL1/V9NX0WrwmuhyMugFDmkkDADUUGoCdIKTbrCSBTQc=----ATTACHMENT:----NjM3MzgxNDI0NDQ2MTIzMyA4MDc5NTM1NDAzMDYzMzUyIDUwMTM5NDE4MDEyMjkzNDM=