Skip to content

Commit 5d6f5ca

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: Updated code example Update performance.rst to use $container->getParameterBag() [Question helper] Add more accuracy on multiple choices answers
2 parents 2efeb8c + b6d52c2 commit 5d6f5ca

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

components/console/helpers/questionhelper.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ this use :method:`Symfony\\Component\\Console\\Question\\ChoiceQuestion::setMult
180180
}
181181

182182
Now, when the user enters ``1,2``, the result will be:
183-
``You have just selected: blue, yellow``.
183+
``You have just selected: blue, yellow``. The user can also enter strings
184+
(e.g. ``blue,yellow``) and even mix strings and the index of the choices
185+
(e.g. ``blue,2``).
184186

185187
If the user does not enter anything, the result will be:
186188
``You have just selected: red, blue``.

performance.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,11 @@ container into a single file, which could improve performance when using
7979
.. code-block:: php
8080
8181
// config/services.php
82+
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
8283
83-
// ...
84-
$container->parameters()->set('.container.dumper.inline_factories', true);
84+
return function(ContainerConfigurator $container): void {
85+
$container->parameters()->set('.container.dumper.inline_factories', true);
86+
};
8587
8688
.. _performance-use-opcache:
8789

0 commit comments

Comments
 (0)