Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
[Statie] allow verbose command for more debug content with -vvv
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Dec 3, 2017
1 parent bf454fc commit 9b154d9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
8 changes: 7 additions & 1 deletion packages/Statie/bin/statie.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php declare(strict_types=1);

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;
use Symplify\Statie\Console\Application;
Expand Down Expand Up @@ -28,7 +30,11 @@
// 3. Run Console Application
/** @var Application $application */
$application = $container->get(Application::class);
exit($application->run());
/** @var InputInterface $input */
$input = $container->get(InputInterface::class);
/** @var OutputInterface $output */
$output = $container->get(OutputInterface::class);
exit($application->run($input, $output));
} catch (Throwable $throwable) {
$symfonyStyle = SymfonyStyleFactory::create();
$symfonyStyle->error($throwable->getMessage());
Expand Down
13 changes: 10 additions & 3 deletions packages/Statie/src/config/external-services.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
services:
_defaults:
autowire: true

Symfony\Component\Console\Application:
alias: Symplify\Statie\Console\Application
public: true # for statie.bin file

ParsedownExtra:
class: ParsedownExtra

Symplify\PackageBuilder\Parameter\ParameterProvider: ~

GitWrapper\GitWrapper: ~

# Symfony Console
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

0 comments on commit 9b154d9

Please sign in to comment.