for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the webmozart/php-scoper package.
*
* (c) Bernhard Schussek <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Webmozart\PhpScoper\Console;
use Symfony\Component\Console\Output\OutputInterface;
use Webmozart\PhpScoper\Formatter\BasicFormatter;
use Webmozart\PhpScoper\Handler\AddPrefixCommandHandler;
/**
* The configuration of the PHP-Scoper CLI.
* @since 1.0
* @author Bernhard Schussek <[email protected]>
class ApplicationConfig
{
public function configure(Application $app)
$app->command(
'add-prefix prefix path*',
function ($prefix, $path, OutputInterface $output) {
$formatter = new BasicFormatter($output);
$formatter->outputScopingStart();
$handler = new AddPrefixCommandHandler();
$handler->handle($prefix, $path, $formatter);
$formatter->outputScopingEnd();
}
);