Skip to content

Commit d6b2996

Browse files
committed
Merge branch '3.4' into 4.0
* 3.4: Fixed some wrong file paths Change code file location Fix typo for variable name Add link to configuration documentation Add composer require symfony/webpack-encore-pack Reword the intro of a console article Fix typo in Memcached adapter documentation
2 parents f9bae24 + 04e1b02 commit d6b2996

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

components/cache/adapters/memcached_adapter.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ Available Options
263263
small outgoing messages and sending them all at once.
264264

265265
``use_udp`` (type: ``bool``, default: ``false``)
266-
Enables or disabled the use of `User Datagram Protocol (UDP)`_ mode (instead
266+
Enables or disables the use of `User Datagram Protocol (UDP)`_ mode (instead
267267
of `Transmission Control Protocol (TCP)`_ mode), where all operations are
268268
executed in a "fire-and-forget" manner; no attempt to ensure the operation
269269
has been received or acted on will be made once the client has executed it.

components/console/console_arguments.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
.. index::
22
single: Console; Console arguments
33

4-
Understanding how Console Arguments Are Handled
5-
===============================================
4+
Understanding how Console Arguments and Options Are Handled
5+
===========================================================
66

7-
It can be difficult to understand the way arguments are handled by the console application.
8-
The Symfony Console application, like many other CLI utility tools, follows the behavior
9-
described in the `docopt`_ standards.
7+
Symfony Console applications follow the same `docopt`_ standard used in most
8+
CLI utility tools. This article explains how to handle edge-cases when the
9+
commands define options with required values, without values, etc. Read
10+
:doc:`this other article </console/input>` to learn about using arguments and
11+
options inside Symfony Console commands.
1012

1113
Have a look at the following command that has three options::
1214

console/input.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ To solve this issue, you have to set the option's default value to ``false``::
257257

258258
Now check the value of the option and keep in mind that ``false !== null``::
259259

260-
$optionValue = $input->getOptions('yell');
260+
$optionValue = $input->getOption('yell');
261261
$yell = ($optionValue !== false);
262262
$yellLouder = ($optionValue === 'louder');
263263

frontend/encore/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Then, install Encore into your project with Yarn:
2323

2424
.. code-block:: terminal
2525
26-
$ composer require encore
26+
$ composer require symfony/webpack-encore-pack
2727
$ yarn install
2828
2929
This will create a ``webpack.config.js`` file, add the ``assets/`` directory, and add ``node_modules/`` to

page_creation.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ Ok, time to finish mastering the fundamentals by reading these articles:
329329
* :doc:`/routing`
330330
* :doc:`/controller`
331331
* :doc:`/templating`
332+
* :doc:`/configuration`
332333

333334
Then, learn about other important topics like the
334335
:doc:`service container </service_container>`,

reference/forms/types/options/choice_label.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ more control::
1717
'maybe' => null,
1818
),
1919
'choice_label' => function ($choiceValue, $key, $value) {
20-
if ($value == choiceValue) {
20+
if ($value == $choiceValue) {
2121
return 'Definitely!';
2222
}
2323

0 commit comments

Comments
 (0)