Skip to content

Commit 06aebb8

Browse files
committed
Remove ErrorListener
1 parent b4f97be commit 06aebb8

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

bin/openapi

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44
use OpenApi\Console\GenerateCommand;
55
use OpenApi\Generator;
66
use Symfony\Component\Console\Application;
7-
use Symfony\Component\Console\EventListener\ErrorListener;
87
use Symfony\Component\Console\Input\ArgvInput;
98
use Symfony\Component\Console\Logger\ConsoleLogger;
109
use Symfony\Component\Console\Output\ConsoleOutput;
11-
use Symfony\Component\EventDispatcher\EventDispatcher;
1210

1311
if (class_exists(Generator::class) === false) {
1412
if (file_exists(__DIR__.'/../vendor/autoload.php')) { // cloned / dev environment?
@@ -33,12 +31,7 @@ $input = new class extends ArgvInput
3331
};
3432
$output = new ConsoleOutput();
3533
$logger = new ConsoleLogger($output);
36-
37-
$dispatcher = new EventDispatcher();
38-
$dispatcher->addSubscriber(new ErrorListener($logger));
39-
4034
$app = new Application();
41-
$app->setDispatcher($dispatcher);
4235

4336
// Remove Symfony's built-in options that conflict with our command options:
4437
// --version (-V): conflicts with our --version (VALUE_REQUIRED for OpenAPI spec version)

0 commit comments

Comments
 (0)