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:----w9rD6WM6RKUpwZBH+xsxYfuKvJKbBo+qbReKcKkRZGzCGEE7ppqBt9fUH//nzRBdRsgkYe1lmkQlZt93IsD5VcoQ9Zl98WZdkTicQA7W9//ss/DYzoy+U3Lx8CsGdXbwsKzxrPKDln6YVE6h/QxeUorDa42Dkw1VCIuh52vb9toA62yf4X/sRuASBfJFqz3mF0B4Zmtk62C7pm7Bc//QdxCeHDezQID3tuve337VA5dP5Mo8lqePbon1gCfiMlpw/dPwlIf3z+LFrs7j+UYAfhvov5OneGFMUDGn1iFMhOJvqavKM/BufZ7V11ihLBHs9WABtDt9m4usJZz4GAog4JptRDOBct/oVZ5jhejAanV1DlU4ceat9bkKIDXi7O6tpfqVqrgzWrm4gVVx3uk2DIrrk5awezs2ymSPAec8u4ZsytFiibXFG6YYRcZOw2Z1BmgflduxBP3g+xvkHrbPUNuk6CoiTjPYgHrrcvFvcRxMzwX7U9WbbsWckNap5Z+C/E+BWar02vWM9RJe3X5vQkIoCGQAB/AeaYQB8nuSK2wIto4rejdv3PO23uEqHcdQxHXoCLt6Qkpop5TB/hNIwDLwL6xLqseQ6T6WbX4aP8kfVYY6YyBXZLmrwXPa8lDNSslECqvQ3Ii4d73SGE0LBRBIblcK63Ze/a3aPwQ+7vw=----ATTACHMENT:----MzgxMjc5Mzc1MzQ3Mzk1NyA2NjQ4MTI5MjEwNDQwOTM3IDE3Mjc1MzAzNTkyMTI2NA==