File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 5
5
use Kocal \BiomeJsBundle \Command \BiomeJsCheckCommand ;
6
6
use Kocal \BiomeJsBundle \Command \BiomeJsCiCommand ;
7
7
use Symfony \Component \DependencyInjection \Loader \Configurator \ContainerConfigurator ;
8
+ use Symfony \Component \Process \Process ;
8
9
use function Symfony \Component \DependencyInjection \Loader \Configurator \abstract_arg ;
9
10
use function Symfony \Component \DependencyInjection \Loader \Configurator \param ;
10
11
use function Symfony \Component \DependencyInjection \Loader \Configurator \service ;
11
12
12
13
return static function (ContainerConfigurator $ container ): void {
13
14
$ container ->parameters ()
14
15
// Internal parameter to enable/disable TTY mode, useful for tests (if someone has a better idea, feel free to suggest it!)
15
- ->set ('biomejs.use_tty ' , true )
16
+ ->set ('biomejs.use_tty ' , Process:: isTtySupported () )
16
17
;
17
18
18
19
$ container ->services ()
40
41
service ('biomejs ' ),
41
42
])
42
43
->tag ('console.command ' );
43
- };
44
+ };
You can’t perform that action at this time.
0 commit comments