REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.39 KB
Close
//opt/cpanel/ea-wappspector/vendor/clue/phar-composer/src/Command/Build.php
Text
Base64
<?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; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Build.php
1.39 KB
lrw-r--r--
2022-02-14 11:28:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Install.php
2.34 KB
lrw-r--r--
2022-02-14 11:28:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Search.php
5.23 KB
lrw-r--r--
2022-02-14 11:28:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).