Skip to content

Commit 06cc6e5

Browse files
committed
minor #9742 Don't use Flex shortcuts when installing packages (javiereguiluz)
This PR was squashed before being merged into the 4.0 branch (closes #9742). Discussion ---------- Don't use Flex shortcuts when installing packages This fixes #9693. I've left some shortcuts on purpose: * in `frontend/encore/installation.rst`: `composer require encore` because Webpack Encore is a bit special and the shortcut is the best way to install it. * in `quick_tour/*.rst` because it shows the features provided by Symfony and shortcuts is one of those features. Readers will learn about them and later they'll decide if they want to use them or not. * in `setup/flex.rst` because they are used on purpose to talk about Flex shortcuts. Commits ------- 2495590 Don't use Flex shortcuts when installing packages
2 parents 5f7eb92 + 2495590 commit 06cc6e5

26 files changed

+48
-48
lines changed

best_practices/i18n.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Internationalization
33

44
Internationalization and localization adapt the applications and their contents
55
to the specific region or language of the users. In Symfony this is an opt-in
6-
feature that needs to be installed before using it (``composer require translation``).
6+
feature that needs to be installed before using it (``composer require symfony/translation``).
77

88
Translation Source File Location
99
--------------------------------

components/var_dumper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Alternatively, you can clone the `<https://github.com/symfony/var-dumper>`_ repo
2323
.. note::
2424

2525
If using it inside a Symfony application, make sure that the DebugBundle has
26-
been installed (or run ``composer require debug`` to install it).
26+
been installed (or run ``composer require symfony/debug-bundle`` to install it).
2727

2828
.. _components-var-dumper-dump:
2929

contributing/code/reproducer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ to a route definition. Then, after creating your project:
6565
of controllers, actions, etc. as in your original application.
6666
#. Create a simple controller and add your routing definition that shows the bug.
6767
#. Don't create or modify any other file.
68-
#. Execute ``composer require server`` and use the ``server:run`` command to browse
69-
to the new route and see if the bug appears or not.
68+
#. Execute ``composer require symfony/web-server-bundle`` and use the ``server:run``
69+
command to browse to the new route and see if the bug appears or not.
7070
#. If you can see the bug, you're done and you can already share the code with us.
7171
#. If you can't see the bug, you must keep making small changes. For example, if
7272
your original route was defined using XML, forget about the previous route

doctrine.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ tight integration with a third-party library called `Doctrine`_.
1818
Installing Doctrine
1919
-------------------
2020

21-
First, install Doctrine, as well as the MakerBundle, which will help generate some
22-
code:
21+
First, install Doctrine support via the ORM pack, as well as the MakerBundle,
22+
which will help generate some code:
2323

2424
.. code-block:: terminal
2525
26-
composer require doctrine
27-
composer require maker --dev
26+
$ composer require symfony/orm-pack
27+
$ composer require symfony/maker-bundle --dev
2828
2929
Configuring the Database
3030
~~~~~~~~~~~~~~~~~~~~~~~~
@@ -468,8 +468,8 @@ the :ref:`doctrine-queries` section.
468468
If the number of database queries is too high, the icon will turn yellow to
469469
indicate that something may not be correct. Click on the icon to open the
470470
Symfony Profiler and see the exact queries that were executed. If you don't
471-
see the web debug toolbar, try running ``composer require profiler`` to install
472-
it.
471+
see the web debug toolbar, try running ``composer require --dev symfony/profiler-pack``
472+
to install it.
473473

474474
Automatically Fetching Objects (ParamConverter)
475475
-----------------------------------------------
@@ -479,7 +479,7 @@ for you automatically! First, install the bundle in case you don't have it:
479479

480480
.. code-block:: terminal
481481
482-
$ composer require annotations
482+
$ composer require sensio/framework-extra-bundle
483483
484484
Now, simplify your controller::
485485

doctrine/dbal.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ First, install the Doctrine bundle:
2525

2626
.. code-block:: terminal
2727
28-
composer require doctrine/doctrine-bundle
28+
$ composer require doctrine/doctrine-bundle
2929
3030
Then configure the ``DATABASE_URL`` environment variable in ``.env``:
3131

doctrine/registration_form.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ First, make sure you have all the dependencies you need installed:
1414

1515
.. code-block:: terminal
1616
17-
$ composer require doctrine form security validator
17+
$ composer require symfony/orm-pack symfony/form symfony/security-bundle symfony/validator
1818
1919
.. tip::
2020

email.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ install the Swift Mailer based mailer before using it:
1717

1818
.. code-block:: terminal
1919
20-
$ composer require mailer
20+
$ composer require symfony/swiftmailer-bundle
2121
2222
If your application doesn't use Symfony Flex, follow the installation
2323
instructions on `SwiftMailerBundle`_.

forms.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ install the form feature before using it:
1717

1818
.. code-block:: terminal
1919
20-
$ composer require form
20+
$ composer require symfony/form
2121
2222
.. note::
2323

@@ -321,7 +321,7 @@ Before using validation, add support for it in your application:
321321

322322
.. code-block:: terminal
323323
324-
$ composer require validator
324+
$ composer require symfony/validator
325325
326326
Validation is done by adding a set of rules (called constraints) to a class. To
327327
see this in action, add validation constraints so that the ``task`` field cannot

logging.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ install the Monolog based logger before using it:
1212

1313
.. code-block:: terminal
1414
15-
$ composer require logger
15+
$ composer require symfony/monolog-bundle
1616
1717
Logging a Message
1818
-----------------

page_creation.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,19 +191,19 @@ The Web Debug Toolbar: Debugging Dream
191191
One of Symfony's *killer* features is the Web Debug Toolbar: a bar that displays
192192
a *huge* amount of debugging information along the bottom of your page while developing.
193193

194-
To use the web debug toolbar, just install it:
194+
To use the web debug toolbar, install the Profiler pack first:
195195

196196
.. code-block:: terminal
197197
198-
$ composer require --dev profiler
198+
$ composer require --dev symfony/profiler-pack
199199
200200
As soon as this finishes, refresh your page. You should see a black bar along the
201201
bottom of the page. You'll learn more about all the information it holds along the
202202
way, but feel free to experiment: hover over and click the different icons to get
203203
information about routing, performance, logging and more.
204204

205-
The ``profiler`` package is also a great example of Flex! After downloading the
206-
package, the recipe created several configuration files so that the web debug toolbar
205+
This is also a great example of Flex! After downloading the profiler package,
206+
the recipe created several configuration files so that the web debug toolbar
207207
worked instantly.
208208

209209
Rendering a Template
@@ -217,7 +217,7 @@ First, install Twig:
217217

218218
.. code-block:: terminal
219219
220-
$ composer require twig
220+
$ composer require symfony/twig-bundle
221221
222222
Second, make sure that ``LuckyController`` extends Symfony's base
223223
:class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller` class:

0 commit comments

Comments
 (0)