8000 Merge branch '4.2' · symfony/symfony-docs@2afa75a · GitHub
[go: up one dir, main page]

Skip to content

Commit 2afa75a

Browse files
committed
Merge branch '4.2'
* 4.2: Fix typo Use the --dev option consistently for Composer and Yarn
2 parents 3601fec + f0bd726 commit 2afa75a

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

components/var_dumper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Installation
1414

1515
.. code-block:: terminal
1616
17-
$ composer require symfony/var-dumper --dev
17+
$ composer require --dev symfony/var-dumper
1818
1919
Alternatively, you can clone the `<https://github.com/symfony/var-dumper>`_ repository.
2020

frontend/encore/postcss.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ First, download ``postcss-loader`` and any plugins you want, like ``autoprefixer
88

99
.. code-block:: terminal
1010
11-
$ yarn add --dev postcss-loader autoprefixer
11+
$ yarn add postcss-loader autoprefixer --dev
1212
1313
Next, create a ``postcss.config.js`` file at the root of your project:
1414

frontend/encore/url-loader.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ it's disabled by default. First, add the URL loader to your project:
1010

1111
.. code-block:: terminal
1212
13-
$ yarn add --dev url-loader
13+
$ yarn add url-loader --dev
1414
1515
Then enable it in your ``webpack.config.js``:
1616

service_container/service_decoration.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -268,17 +268,17 @@ the ``decoration_priority`` option. Its value is an integer that defaults to
268268
// config/services.php
269269
use Symfony\Component\DependencyInjection\Reference;
270270
271-
$container->register(Foo:class)
271+
$container->register(Foo::class)
272272
273-
$container->register(Bar:class)
274-
->addArgument(new Reference(Bar:class.'.inner'))
273+
$container->register(Bar::class)
274+
->addArgument(new Reference(Bar::class.'.inner'))
275275
->setPublic(false)
276-
->setDecoratedService(Foo:class, null, 5);
276+
->setDecoratedService(Foo::class, null, 5);
277277
278-
$container->register(Baz:class)
279-
->addArgument(new Reference(Baz:class.'.inner'))
278+
$container->register(Baz::class)
279+
->addArgument(new Reference(Baz::class.'.inner'))
280280
->setPublic(false)
281-
->setDecoratedService(Foo:class, null, 1);
281+
->setDecoratedService(Foo::class, null, 1);
282282
283283
The generated code will be the following::
284284

0 commit comments

Comments
 (0)
0