OXIESEC PANEL
- Current Dir:
/
/
usr
/
share
/
php
/
Composer
/
Command
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
07/20/2024 06:32:22 AM
rwxr-xr-x
📄
AboutCommand.php
1.1 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
ArchiveCommand.php
6.42 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
BaseCommand.php
4.51 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
BaseDependencyCommand.php
9.7 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
CheckPlatformReqsCommand.php
4.9 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
ClearCacheCommand.php
1.99 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
ConfigCommand.php
26.21 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
CreateProjectCommand.php
17.35 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
DependsCommand.php
1.29 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
DiagnoseCommand.php
25.52 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
DumpAutoloadCommand.php
3.21 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
ExecCommand.php
2.74 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
GlobalCommand.php
2.86 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
HomeCommand.php
5.29 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
InitCommand.php
28.09 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
InstallCommand.php
6.17 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
LicensesCommand.php
5.32 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
OutdatedCommand.php
3.44 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
ProhibitsCommand.php
1.31 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
RemoveCommand.php
6.81 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
RequireCommand.php
10.15 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
RunScriptCommand.php
4.82 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
ScriptAliasCommand.php
1.88 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
SearchCommand.php
2.86 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
SelfUpdateCommand.php
16.48 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
ShowCommand.php
37.82 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
StatusCommand.php
7.89 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
SuggestsCommand.php
5.1 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
UpdateCommand.php
10.82 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
ValidateCommand.php
6.73 KB
01/31/2018 03:28:18 PM
rw-r--r--
Editing: ExecCommand.php
Close
<?php /* * This file is part of Composer. * * (c) Nils Adermann <naderman@naderman.de> * Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Composer\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Input\InputArgument; /** * @author Davey Shafik <me@daveyshafik.com> */ class ExecCommand extends BaseCommand { protected function configure() { $this ->setName('exec') ->setDescription('Executes a vendored binary/script.') ->setDefinition(array( new InputOption('list', 'l', InputOption::VALUE_NONE), new InputArgument('binary', InputArgument::OPTIONAL, 'The binary to run, e.g. phpunit'), new InputArgument( 'args', InputArgument::IS_ARRAY | InputArgument::OPTIONAL, 'Arguments to pass to the binary. Use <info>--</info> to separate from composer arguments' ), )) ; } protected function execute(InputInterface $input, OutputInterface $output) { $composer = $this->getComposer(); $binDir = $composer->getConfig()->get('bin-dir'); if ($input->getOption('list') || !$input->getArgument('binary')) { $bins = glob($binDir . '/*'); $bins = array_merge($bins, array_map(function ($e) { return "$e (local)"; }, $composer->getPackage()->getBinaries())); if (!$bins) { throw new \RuntimeException("No binaries found in composer.json or in bin-dir ($binDir)"); } $this->getIO()->write(<<<EOT <comment>Available binaries:</comment> EOT ); foreach ($bins as $bin) { // skip .bat copies if (isset($previousBin) && $bin === $previousBin.'.bat') { continue; } $previousBin = $bin; $bin = basename($bin); $this->getIO()->write(<<<EOT <info>- $bin</info> EOT ); } return 0; } $binary = $input->getArgument('binary'); $dispatcher = $composer->getEventDispatcher(); $dispatcher->addListener('__exec_command', $binary); if ($output->getVerbosity() === OutputInterface::VERBOSITY_NORMAL) { $output->setVerbosity(OutputInterface::VERBOSITY_QUIET); } return $dispatcher->dispatchScript('__exec_command', true, $input->getArgument('args')); } }