| Server IP : 162.214.74.102 / Your IP : 216.73.216.192 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /opt/cpanel/ea-wappspector/vendor/clue/phar-composer/src/Command/ |
Upload File : |
<?php
namespace Clue\PharComposer\Command;
use Clue\PharComposer\Phar\Packager;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class Build extends Command
{
/** @var Packager */
private $packager;
public function __construct(Packager $packager = null)
{
parent::__construct();
if ($packager === null) {
$packager = new Packager();
}
$this->packager = $packager;
}
protected function configure()
{
$this->setName('build')
->setDescription('Build phar for the given composer project')
->addArgument('project', InputArgument::OPTIONAL, 'Path to project directory or composer.json', '.')
->addArgument('target', InputArgument::OPTIONAL, 'Path to write phar output to (defaults to project name)');
}
protected function execute(InputInterface $input, OutputInterface $output)
{
$this->packager->setOutput($output);
$this->packager->coerceWritable();
$pharer = $this->packager->getPharer($input->getArgument('project'));
$target = $input->getArgument('target');
if ($target !== null) {
$pharer->setTarget($target);
}
$pharer->build();
return 0;
}
}