Skip to content

Commit 2495590

Browse files
committed
Don't use Flex shortcuts when installing packages
1 parent 4435a4a commit 2495590

27 files changed

+49
-49
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:

profiler.rst

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

1313
.. code-block:: terminal
1414
15-
$ composer require profiler --dev
15+
$ composer require --dev symfony/profiler-pack
1616
1717
.. toctree::
1818
:maxdepth: 1

routing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ the change is simple.
2020
Creating Routes
2121
---------------
2222

23-
First, install the annotations package:
23+
First, add support for annotations via the SensioFrameworkExtraBundle:
2424

2525
.. code-block:: terminal
2626
27-
$ composer require annotations
27+
$ composer require sensio/framework-extra-bundle
2828
2929
A *route* is a map from a URL path to a controller. Suppose you want one route that
3030
matches ``/blog`` exactly and another more dynamic route that can match *any* URL

security.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ install the security feature before using it:
3434

3535
.. code-block:: terminal
3636
37-
$ composer require security
37+
$ composer require symfony/security-bundle
3838
3939
.. _security-firewalls:
4040
.. _firewalls-authentication:
@@ -136,7 +136,7 @@ You'll learn later how to deny access to certain URLs or controllers.
136136

137137
.. code-block:: terminal
138138
139-
$ composer require profiler --dev
139+
$ composer require --dev symfony/profiler-pack
140140
141141
.. tip::
142142

security/csrf.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ requires installing the Symfony Form component):
1717

1818
.. code-block:: terminal
1919
20-
$ composer require security-csrf form
20+
$ composer require symfony/security-csrf symfony/form
2121
2222
Then, enable/disable the CSRF protection with the ``csrf_protection`` option
2323
(see the :ref:`CSRF configuration reference <reference-framework-csrf-protection>`

security/entity_provider.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ and :ref:`user serialization to the session <security-serialize-equatable>`
2727
1) Create your User Entity
2828
--------------------------
2929

30-
Before you begin, first make sure you install the Security component:
30+
Before you begin, run this command to add support for the Symfony security:
3131

3232
.. code-block:: terminal
3333
34-
$ composer require security
34+
$ composer require symfony/security-bundle
3535
3636
For this entry, suppose that you already have a ``User`` entity
3737
with the following fields: ``id``, ``username``, ``password``,

security/ldap.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ install the Ldap component before using it:
4242

4343
.. code-block:: terminal
4444
45-
$ composer require ldap
45+
$ composer require symfony/ldap
4646
4747
Ldap Configuration Reference
4848
----------------------------

security/security_checker.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ First, install the security checker in your project:
1313

1414
.. code-block:: terminal
1515
16-
$ composer require security-checker
16+
$ composer require sensiolabs/security-checker
1717
1818
Then run this command:
1919

serializer.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ install the serializer before using it:
1919

2020
.. code-block:: terminal
2121
22-
$ composer require serializer
22+
$ composer require symfony/serializer
2323
2424
Using the Serializer Service
2525
----------------------------
@@ -119,11 +119,11 @@ properties and setters (``setXxx()``) to change properties:
119119
Using Serialization Groups Annotations
120120
--------------------------------------
121121

122-
To use annotations, first install the annotations package:
122+
To use annotations, first add support for them via the SensioFrameworkExtraBundle:
123123

124124
.. code-block:: terminal
125125
126-
$ composer require annotations
126+
$ composer require sensio/framework-extra-bundle
127127
128128
Next, add the :ref:`@Groups annotations <component-serializer-attributes-groups-annotations>`
129129
to your class and choose which groups to use when serializing::

setup.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ First, move into your new project and install the server:
4545
.. code-block:: terminal
4646
4747
$ cd my-project
48-
$ composer require server --dev
48+
$ composer require symfony/web-server-bundle --dev
4949
5050
To start the server, run:
5151

@@ -115,14 +115,14 @@ few other project-specific tasks (e.g. creating database schema).
115115
Checking for Security Vulnerabilities
116116
-------------------------------------
117117

118-
Symfony provides a utility called the "Security Checker" (or ``sec-checker``) to
119-
check whether your project's dependencies contain any known security
120-
vulnerability. Run this command to install it in your application:
118+
Symfony provides a utility called the "Security Checker" to check whether your
119+
project's dependencies contain any known security vulnerability. Run this
120+
command to install it in your application:
121121

122122
.. code-block:: terminal
123123
124124
$ cd my-project/
125-
$ composer require sec-checker --dev
125+
$ composer require sensiolabs/security-checker --dev
126126
127127
From now on, this utility will be run automatically whenever you install or
128128
update any dependency in the application. If a dependency contains a vulnerability,

setup/built_in_web_server.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Move into your project directory and run this command:
2727
.. code-block:: terminal
2828
2929
$ cd your-project/
30-
$ composer require server --dev
30+
$ composer require symfony/web-server-bundle --dev
3131
3232
Starting the Web Server
3333
-----------------------

templating.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ To use this function, install the *asset* package:
744744

745745
.. code-block:: terminal
746746
747-
$ composer require asset
747+
$ composer require symfony/asset
748748
749749
You can now use the ``asset()`` function:
750750

templating/PHP.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ If you want to use the PHP templating engine, first install the templating compo
2121

2222
.. code-block:: terminal
2323
24-
$ composer require templating
24+
$ composer require symfony/templating
2525
2626
Next, enable the php engine:
2727

templating/debug.rst

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

1515
.. code-block:: terminal
1616
17-
$ composer require var-dumper
17+
$ composer require symfony/var-dumper
1818
1919
This is useful, for example, inside your controller::
2020

testing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ First, install the BrowserKit component in your project:
139139

140140
.. code-block:: terminal
141141
142-
$ composer require --dev browser-kit
142+
$ composer require --dev symfony/browser-kit
143143
144144
Functional tests are simple PHP files that typically live in the ``tests/Controller``
145145
directory for your bundle. If you want to test the pages handled by your
@@ -210,7 +210,7 @@ component, run:
210210

211211
.. code-block:: terminal
212212
213-
$ composer require --dev css-selector
213+
$ composer require --dev symfony/css-selector
214214
215215
Now you can use CSS selectors with the crawler. To assert that the phrase
216216
"Hello World" is on the page at least once, you can use this assertion::

translation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ First, run this command to install the translator before using it:
5555

5656
.. code-block:: terminal
5757
58-
$ composer require translator
58+
$ composer require symfony/translation
5959
6060
Configuration
6161
-------------

validation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ install the validator before using it:
1919

2020
.. code-block:: terminal
2121
22-
$ composer require validator
22+
$ composer require symfony/validator
2323
2424
.. index::
2525
single: Validation; The basics

workflow/usage.rst

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

1313
.. code-block:: terminal
1414
15-
$ composer require workflow
15+
$ composer require symfony/workflow
1616
1717
Creating a Workflow
1818
-------------------

0 commit comments

Comments
 (0)