-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Don't use Flex shortcuts when installing packages #9742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
b261911
1bd1029
bd984a0
0be19f4
994df43
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,8 @@ code: | |
|
||
.. code-block:: terminal | ||
|
||
composer require doctrine | ||
composer require maker --dev | ||
$ composer require doctrine/doctrine-bundle | ||
$ composer require symfony/maker-bundle --dev | ||
|
||
Configuring the Database | ||
~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
@@ -468,8 +468,8 @@ the :ref:`doctrine-queries` section. | |
If the number of database queries is too high, the icon will turn yellow to | ||
indicate that something may not be correct. Click on the icon to open the | ||
Symfony Profiler and see the exact queries that were executed. If you don't | ||
see the web debug toolbar, try running ``composer require profiler`` to install | ||
it. | ||
see the web debug toolbar, try running ``composer require symfony/web-profiler-bundle`` | ||
to install it. | ||
|
||
Automatically Fetching Objects (ParamConverter) | ||
----------------------------------------------- | ||
|
@@ -479,7 +479,7 @@ for you automatically! First, install the bundle in case you don't have it: | |
|
||
.. code-block:: terminal | ||
|
||
$ composer require annotations | ||
$ composer require doctrine/annotations | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's not the same, |
||
|
||
Now, simplify your controller:: | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ First, make sure you have all the dependencies you need installed: | |
|
||
.. code-block:: terminal | ||
|
||
$ composer require doctrine form security validator | ||
$ composer require doctrine/doctrine-bundle symfony/form symfony/security-bundle symfony/validator | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above: use |
||
|
||
.. tip:: | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -195,15 +195,15 @@ To use the web debug toolbar, just install it: | |
|
||
.. code-block:: terminal | ||
|
||
$ composer require --dev profiler | ||
$ composer require --dev symfony/web-profiler-bundle | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should be |
||
|
||
As soon as this finishes, refresh your page. You should see a black bar along the | ||
bottom of the page. You'll learn more about all the information it holds along the | ||
way, but feel free to experiment: hover over and click the different icons to get | ||
information about routing, performance, logging and more. | ||
|
||
The ``profiler`` package is also a great example of Flex! After downloading the | ||
package, the recipe created several configuration files so that the web debug toolbar | ||
This is also a great example of Flex! After downloading the profiler package, | ||
the recipe created several configuration files so that the web debug toolbar | ||
worked instantly. | ||
|
||
Rendering a Template | ||
|
@@ -217,7 +217,7 @@ First, install Twig: | |
|
||
.. code-block:: terminal | ||
|
||
$ composer require twig | ||
$ composer require symfony/twig-bundle | ||
|
||
Second, make sure that ``LuckyController`` extends Symfony's base | ||
:class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller` class: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ install the profiler before using it: | |
|
||
.. code-block:: terminal | ||
|
||
$ composer require profiler --dev | ||
$ composer require symfony/web-profiler-bundle --dev | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ First, install the annotations package: | |
|
||
.. code-block:: terminal | ||
|
||
$ composer require annotations | ||
$ composer require doctrine/annotations | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. SensioFrameworkExtraBundle |
||
|
||
A *route* is a map from a URL path to a controller. Suppose you want one route that | ||
matches ``/blog`` exactly and another more dynamic route that can match *any* URL | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ install the security feature before using it: | |
|
||
.. code-block:: terminal | ||
|
||
$ composer require security | ||
$ composer require symfony/security-bundle | ||
|
||
.. _security-firewalls: | ||
.. _firewalls-authentication: | ||
|
@@ -136,7 +136,7 @@ You'll learn later how to deny access to certain URLs or controllers. | |
|
||
.. code-block:: terminal | ||
|
||
$ composer require profiler --dev | ||
$ composer require symfony/web-profiler-bundle --dev | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
.. tip:: | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ install the serializer before using it: | |
|
||
.. code-block:: terminal | ||
|
||
$ composer require serializer | ||
$ composer require symfony/serializer | ||
|
||
Using the Serializer Service | ||
---------------------------- | ||
|
@@ -123,7 +123,7 @@ To use annotations, first install the annotations package: | |
|
||
.. code-block:: terminal | ||
|
||
$ composer require annotations | ||
$ composer require doctrine/annotations | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. SensioFrameworkExtraBundle |
||
|
||
Next, add the :ref:`@Groups annotations <component-serializer-attributes-groups-annotations>` | ||
to your class and choose which groups to use when serializing:: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the way, why don't we use
orm
here instead? With this step the requireddoctrine/orm
package would be missing leading to errors.