File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44use OpenApi \Console \GenerateCommand ;
55use OpenApi \Generator ;
66use Symfony \Component \Console \Application ;
7- use Symfony \Component \Console \EventListener \ErrorListener ;
87use Symfony \Component \Console \Input \ArgvInput ;
98use Symfony \Component \Console \Logger \ConsoleLogger ;
109use Symfony \Component \Console \Output \ConsoleOutput ;
11- use Symfony \Component \EventDispatcher \EventDispatcher ;
1210
1311if (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)
You can’t perform that action at this time.
0 commit comments