This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Bundle/WebServerBundle/Command
Fabien Potencier 7695112601 feature #22317 [Console] Make SymfonyQuestionHelper::ask optional by default (ro0NL)
This PR was merged into the 4.0-dev branch.

Discussion
----------

[Console] Make SymfonyQuestionHelper::ask optional by default

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes (nothing in core depends on it)
| Fixed tickets | #... <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!--highly recommended for new features-->

i noticed when writing commands i always keep doing

```php
$io = new SymfonyStyle($input, $output);
$answer = $io->ask('...', null, function ($value) { return $value; });

// instead of just
$answer = $io->ask('...');
```

only to bypass a built-in validation, of which im not sure why it's there. Note the base question helper doesnt make this assumption...

Commits
-------

2da429cd0a [Console] Make SymfonyQuestionHelper::ask optional by default
2017-07-22 20:13:43 +02:00
..
ServerCommand.php [WebServerBundle] Mark ServerCommand as internal 2017-05-23 11:11:47 +02:00
ServerLogCommand.php Use 0.0.0.0 as the server log host default. 2017-05-18 21:05:32 -05:00
ServerRunCommand.php [WebServerBundle] allowed public/ root directory to be auto-discovered along side web/ 2017-07-16 14:41:56 +02:00
ServerStartCommand.php feature #22317 [Console] Make SymfonyQuestionHelper::ask optional by default (ro0NL) 2017-07-22 20:13:43 +02:00
ServerStatusCommand.php added some missing docs for the web server bundle 2017-05-03 12:30:25 -07:00
ServerStopCommand.php added some missing docs for the web server bundle 2017-05-03 12:30:25 -07:00