mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-18 17:12:22 +00:00
ProgressBar: fix verbosity fuction
This commit is contained in:
parent
a5cad527f8
commit
4f1cc44c2a
|
@ -4,6 +4,8 @@ use Rector\Configuration\RectorConfigFilePathHelper;
|
|||
use Rector\Console\Application;
|
||||
use Rector\DependencyInjection\ContainerFactory;
|
||||
use Symfony\Component\Console\Input\ArgvInput;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Symplify\PackageBuilder\Configuration\ConfigFilePathHelper;
|
||||
use Symplify\PackageBuilder\Console\Style\SymfonyStyleFactory;
|
||||
|
||||
|
@ -34,7 +36,11 @@ try {
|
|||
// 3. Run Console Application
|
||||
/** @var Application $application */
|
||||
$application = $container->get(Application::class);
|
||||
$statusCode = $application->run();
|
||||
/** @var InputInterface $input */
|
||||
$input = $container->get(InputInterface::class);
|
||||
/** @var OutputInterface $output */
|
||||
$output = $container->get(OutputInterface::class);
|
||||
$statusCode = $application->run($input, $output);
|
||||
exit($statusCode);
|
||||
} catch (Throwable $throwable) {
|
||||
$symfonyStyle = SymfonyStyleFactory::create();
|
||||
|
@ -44,5 +50,5 @@ try {
|
|||
$throwable->getFile(),
|
||||
$throwable->getLine()
|
||||
));
|
||||
exit(1);
|
||||
exit($throwable->getCode());
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ final class AppKernel extends Kernel
|
|||
$this->configFile = $configFile;
|
||||
}
|
||||
|
||||
parent::__construct('dev' . sha1($configFile), true);
|
||||
parent::__construct('cli' . sha1($configFile), false);
|
||||
}
|
||||
|
||||
public function registerContainerConfiguration(LoaderInterface $loader): void
|
||||
|
|
|
@ -24,6 +24,14 @@ services:
|
|||
Symfony\Component\Console\Style\SymfonyStyle:
|
||||
factory: ['Symplify\PackageBuilder\Console\Style\SymfonyStyleFactory', 'create']
|
||||
|
||||
Symfony\Component\Console\Input\ArgvInput: ~
|
||||
Symfony\Component\Console\Input\InputInterface:
|
||||
alias: Symfony\Component\Console\Input\ArgvInput
|
||||
|
||||
Symfony\Component\Console\Output\ConsoleOutput: ~
|
||||
Symfony\Component\Console\Output\OutputInterface:
|
||||
alias: Symfony\Component\Console\Output\ConsoleOutput
|
||||
|
||||
Symplify\PackageBuilder\Parameter\ParameterProvider: ~
|
||||
|
||||
PhpCsFixer\Differ\UnifiedDiffer: ~
|
||||
# PhpCsFixer\Differ\UnifiedDiffer: ~
|
||||
|
|
Loading…
Reference in New Issue
Block a user