15
15
use Symfony \Bridge \Monolog \Formatter \ConsoleFormatter ;
16
16
use Symfony \Bridge \Monolog \Handler \ConsoleHandler ;
17
17
use Symfony \Component \Console \Command \Command ;
18
+ use Symfony \Component \Console \Exception \LogicException ;
19
+ use Symfony \Component \Console \Exception \RuntimeException ;
18
20
use Symfony \Component \Console \Input \InputInterface ;
19
21
use Symfony \Component \Console \Input \InputOption ;
20
22
use Symfony \Component \Console \Output \OutputInterface ;
@@ -78,7 +80,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
78
80
$ filter = $ input ->getOption ('filter ' );
79
81
if ($ filter ) {
80
82
if (!class_exists (ExpressionLanguage::class)) {
81
- throw new \ LogicException ('Package "symfony/expression-language" is required to use the "filter" option. ' );
83
+ throw new LogicException ('Package "symfony/expression-language" is required to use the "filter" option. ' );
82
84
}
83
85
$ this ->el = new ExpressionLanguage ();
84
86
}
@@ -97,7 +99,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
97
99
}
98
100
99
101
if (!$ socket = stream_socket_server ($ host , $ errno , $ errstr )) {
100
- throw new \ RuntimeException (sprintf ('Server start failed on "%s": %s %s. ' , $ host , $ errstr , $ errno ));
102
+ throw new RuntimeException (sprintf ('Server start failed on "%s": %s %s. ' , $ host , $ errstr , $ errno ));
101
103
}
102
104
103
105
foreach ($ this ->getLogs ($ socket ) as $ clientId => $ message ) {
0 commit comments