4747 */
4848final class DevTools extends Application
4949{
50- private const string NO_LOGO_OPTION = 'no-logo ' ;
51-
5250 private const string LOGO = <<<'LOGO'
5351 ____ _____ _
5452 | _ \ _____ _|_ _|__ ___ | |___
@@ -57,6 +55,8 @@ final class DevTools extends Application
5755 |____/ \___| \_/ |_|\___/ \___/|_|___/
5856 LOGO;
5957
58+ private const string NO_LOGO_OPTION = 'no-logo ' ;
59+
6060 /**
6161 * @var ContainerInterface holds the static container instance for global access within the DevTools context
6262 */
@@ -89,16 +89,6 @@ public function __construct(
8989 $ this ->setCommandLoader ($ commandLoader );
9090 }
9191
92- /**
93- * Gets the help message for the DevTools application.
94- *
95- */
96- #[Override]
97- public function getHelp (): string
98- {
99- return parent ::getHelp ();
100- }
101-
10292 /**
10393 * Returns the application-level input definition with DevTools runtime options.
10494 *
@@ -130,7 +120,7 @@ protected function getDefaultInputDefinition(): InputDefinition
130120 ));
131121
132122 $ definition ->addOption (new InputOption (
133- name: self :: NO_LOGO_OPTION ,
123+ name: ' no-logo ' ,
134124 mode: InputOption::VALUE_NONE ,
135125 description: 'Hide the startup ASCII logo. ' ,
136126 ));
@@ -149,7 +139,9 @@ protected function getDefaultInputDefinition(): InputDefinition
149139 #[Override]
150140 public function doRun (InputInterface $ input , OutputInterface $ output ): int
151141 {
152- if (! (bool ) $ input ->getOption (self ::NO_LOGO_OPTION )) {
142+ $ noLogo = (bool ) $ input ->getParameterOption ('--no-logo ' , null , true );
143+
144+ if (! $ noLogo ) {
153145 $ output ->writeln (self ::LOGO );
154146 }
155147
@@ -162,7 +154,7 @@ public function doRun(InputInterface $input, OutputInterface $output): int
162154 return Command::FAILURE ;
163155 }
164156
165- if (! $ this ->isSelfUpdateCommand ($ input )) {
157+ if (! $ noLogo && ! $ this ->isSelfUpdateCommand ($ input )) {
166158 $ this ->runAutoUpdateWhenRequested ($ input , $ output );
167159 $ this ->versionCheckNotifier ->notify ($ output );
168160 }
0 commit comments