Skip to content

Commit 264ede9

Browse files
committed
Merge branch '4.2'
* 4.2: Consistency changes
2 parents 543a05b + ca022ce commit 264ede9

27 files changed

+41
-41
lines changed

bundles/configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ The ``Configuration`` class to handle the sample configuration looks like::
197197
}
198198
}
199199

200-
.. versionadded:: 4.2
200+
.. deprecated:: 4.2
201201

202202
Not passing the root node name to ``TreeBuilder`` was deprecated in Symfony 4.2.
203203

components/config/definition.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ implements the :class:`Symfony\\Component\\Config\\Definition\\ConfigurationInte
6868
}
6969
}
7070

71-
.. versionadded:: 4.2
71+
.. deprecated:: 4.2
7272

7373
Not passing the root node name to ``TreeBuilder`` was deprecated in Symfony 4.2.
7474

components/serializer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ The ``CsvEncoder`` encodes to and decodes from CSV.
762762
You can pass the context key ``as_collection`` in order to have the results
763763
always as a collection.
764764

765-
.. versionadded:: 4.2
765+
.. deprecated:: 4.2
766766

767767
Relying on the default value ``false`` is deprecated since Symfony 4.2.
768768

components/var_dumper.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ server, which outputs it to its own console or to an HTML file:
111111
.. code-block:: terminal
112112
113113
# displays the dumped data in the console:
114-
$ ./bin/console server:dump
114+
$ php bin/console server:dump
115115
[OK] Server listening on tcp://0.0.0.0:9912
116116
117117
# stores the dumped data in a file using the HTML format:
118-
$ ./bin/console server:dump --format=html > dump.html
118+
$ php bin/console server:dump --format=html > dump.html
119119
120120
Inside a Symfony application, the output of the dump server is configured with
121121
the :ref:`dump_destination option <configuration-debug-dump_destination>` of the

controller.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ use:
298298
$ php bin/console make:crud Product
299299
300300
.. versionadded:: 1.2
301+
301302
The ``make:crud`` command was introduced in MakerBundle 1.2.
302303

303304
.. index::

controller/upload_file.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ There are some important things to consider in the code of the above controller:
189189
use the :method:`Symfony\\Component\\HttpFoundation\\File\\UploadedFile::guessExtension`
190190
method to let Symfony guess the right extension according to the file MIME type;
191191

192-
.. versionadded:: 4.1
192+
.. deprecated:: 4.1
193193

194194
The :method:`Symfony\\Component\\HttpFoundation\\File\\UploadedFile::getClientSize`
195195
method was deprecated in Symfony 4.1 and will be removed in Symfony 5.0.

doctrine.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ which will help generate some code:
2929
.. code-block:: terminal
3030
3131
$ composer require symfony/orm-pack
32-
$ composer require symfony/maker-bundle --dev
32+
$ composer require --dev symfony/maker-bundle
3333
3434
Configuring the Database
3535
~~~~~~~~~~~~~~~~~~~~~~~~
@@ -117,6 +117,7 @@ need. The command will ask you some questions - answer them like done below:
117117
(press enter again to finish)
118118
119119
.. versionadded:: 1.3
120+
120121
The interactive behavior of the ``make:entity`` command was introduced
121122
in MakerBundle 1.3.
122123

@@ -332,9 +333,7 @@ to experiment:
332333
$ php bin/console make:controller ProductController
333334
334335
Inside the controller, you can create a new ``Product`` object, set data on it,
335-
and save it!
336-
337-
.. code-block:: php
336+
and save it::
338337

339338
// src/Controller/ProductController.php
340339
namespace App\Controller;
@@ -731,7 +730,7 @@ data into your project (i.e. "fixture data"). Install it with:
731730

732731
.. code-block:: terminal
733732
734-
$ composer require doctrine/doctrine-fixtures-bundle --dev
733+
$ composer require --dev doctrine/doctrine-fixtures-bundle
735734
736735
Then, use the ``make:fixtures`` command to generate an empty fixture class:
737736

doctrine/registration_form.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Make sure MakerBundle is installed:
2121

2222
.. code-block:: terminal
2323
24-
$ composer require symfony/maker-bundle --dev
24+
$ composer require --dev symfony/maker-bundle
2525
2626
If you need any other dependencies, MakerBundle will tell you when you run each
2727
command.
@@ -50,6 +50,7 @@ To easiest way to build your registration form is by using the ``make:registrati
5050
command:
5151

5252
.. versionadded:: 1.11
53+
5354
The ``make:registration-form`` was introduced in MakerBundle 1.11.0.
5455

5556
.. code-block:: terminal

form/form_themes.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -313,30 +313,30 @@ following complex example where a ``TaskManagerType`` has a collection of
313313

314314
class TaskManagerType extends AbstractType
315315
{
316-
public function buildForm(FormBuilderInterface $builder, array $options = array())
316+
public function buildForm(FormBuilderInterface $builder, array $options = [])
317317
{
318318
// ...
319-
$builder->add('taskLists', CollectionType::class, array(
319+
$builder->add('taskLists', CollectionType::class, [
320320
'entry_type' => TaskListType::class,
321321
'block_name' => 'task_lists',
322-
));
322+
]);
323323
}
324324
}
325325

326326
class TaskListType extends AbstractType
327327
{
328-
public function buildForm(FormBuilderInterface $builder, array $options = array())
328+
public function buildForm(FormBuilderInterface $builder, array $options = [])
329329
{
330330
// ...
331-
$builder->add('tasks', CollectionType::class, array(
331+
$builder->add('tasks', CollectionType::class, [
332332
'entry_type' => TaskType::class,
333-
));
333+
]);
334334
}
335335
}
336336

337337
class TaskType
338338
{
339-
public function buildForm(FormBuilderInterface $builder, array $options = array())
339+
public function buildForm(FormBuilderInterface $builder, array $options = [])
340340
{
341341
$builder->add('name');
342342
// ...

frontend/encore/reactjs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Using React? First enable support for it in ``webpack.config.js``:
55

66
.. code-block:: terminal
77
8-
$ yarn add --dev @babel/preset-react
8+
$ yarn add @babel/preset-react --dev
99
$ yarn add react react-dom prop-types
1010
1111
Enable react in your ``webpack.config.js``:

0 commit comments

Comments
 (0)