Skip to content

Commit efb3c75

Browse files
Remove console style
1 parent ac7d04d commit efb3c75

File tree

7 files changed

+0
-185
lines changed

7 files changed

+0
-185
lines changed

src/Bundle/RegisterOutputFormatterStylesPass.php

Lines changed: 0 additions & 67 deletions
This file was deleted.

src/Bundle/SymfonyConsoleFormBundle.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@ public function build(ContainerBuilder $container): void
1616
{
1717
$container->addCompilerPass(new RegisterTransformersPass());
1818

19-
$container->addCompilerPass(
20-
new RegisterOutputFormatterStylesPass(
21-
'matthias_symfony_console.styles_collection',
22-
'console_style',
23-
'style'
24-
)
25-
);
26-
2719
$container->addCompilerPass(
2820
new RegisterHelpersPass(
2921
'matthias_symfony_console_form.helper_collection',

src/Bundle/SymfonyConsoleFormExtension.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ public function load(array $config, ContainerBuilder $container): void
1313
{
1414
$loader = new YamlFileLoader($container, new FileLocator(__DIR__));
1515
$loader->load('services.yml');
16-
$loader->load('style.yml');
1716
$loader->load('helpers.yml');
1817
}
1918

src/Bundle/style.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/Console/EventListener/RegisterOutputFormatterStylesEventListener.php

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/Console/Formatter/Format.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace Matthias\SymfonyConsoleForm\Console\Formatter;
44

5-
use Symfony\Component\Console\Formatter\OutputFormatterStyle;
6-
use Symfony\Component\Console\Output\OutputInterface;
7-
85
final class Format
96
{
107
/**
@@ -25,13 +22,4 @@ public static function forQuestion(string $question, $defaultValue): string
2522
]
2623
);
2724
}
28-
29-
public static function registerStyles(OutputInterface $output): void
30-
{
31-
$formatter = $output->getFormatter();
32-
33-
$formatter->setStyle('fieldset', new OutputFormatterStyle('yellow', null, ['bold']));
34-
$formatter->setStyle('default', new OutputFormatterStyle('green'));
35-
$formatter->setStyle('question', new OutputFormatterStyle('black', 'cyan'));
36-
}
3725
}

src/Console/Formatter/StylesCollection.php

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)