8000 Merge branch '5.0' · symfony/symfony-docs@8bf1f5e · GitHub
[go: up one dir, main page]

Skip to content

Commit 8bf1f5e

Browse files
committed
Merge branch '5.0'
* 5.0: Misc. wording/grammar changes
2 parents 664fc58 + 6fb0d10 commit 8bf1f5e

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

configuration.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ the ``services.yaml`` file configures the services of the
2525
:doc:`service container </service_container>`; the ``bundles.php`` file enables/
2626
disables packages in your application.
2727

28-
You'll be working most in the ``config/packages/`` directory. This directory
28+
You'll be working mostly in the ``config/packages/`` directory. This directory
2929
stores the configuration of every package installed in your application.
3030
Packages (also called "bundles" in Symfony and "plugins/modules" in other
3131
projects) add ready-to-use features to your projects.
@@ -55,7 +55,7 @@ to change these files after package installation
5555
Configuration Formats
5656
~~~~~~~~~~~~~~~~~~~~~
5757

58-
Unlike other frameworks, Symfony doesn't impose you a specific format to
58+
Unlike other frameworks, Symfony doesn't impose a specific format on you to
5959
configure your applications. Symfony lets you choose between YAML, XML and PHP
6060
and throughout the Symfony documentation, all configuration examples will be
6161
shown in these three formats.
@@ -70,8 +70,8 @@ readable. These are the main advantages and disadvantages of each format:
7070
* **YAML**: simple, clean and readable, but not all IDEs support autocompletion
7171
and validation for it. :doc:`Learn the YAML syntax </components/yaml/yaml_format>`;
7272
* **XML**:autocompleted/validated by most IDEs and is parsed natively by PHP,
73-
but sometimes it generates too verbose configuration. `Learn the XML syntax`_;
74-
* **PHP**: very powerful and it allows to create dynamic configuration, but the
73+
but sometimes it generates configuration considered too verbose. `Learn the XML syntax`_;
74+
* **PHP**: very powerful and it allows you to create dynamic configuration, but the
7575
resulting configuration is less readable than the other formats.
7676

7777
Importing Configuration Files
@@ -368,7 +368,7 @@ Take the ``framework`` package, installed by default, as an example:
368368
``config/packages/framework.yaml``.
369369

370370
In reality, each environment differs only somewhat from others. This means that
371-
all environments share a large base of common configurations, which is put in
371+
all environments share a large base of common configuration, which is put in
372372
files directly in the ``config/packages/`` directory.
373373

374374
.. seealso::
@@ -425,7 +425,7 @@ going to production:
425425

426426
.. tip::
427427

428-
It's common for environments to be similar between each other, so you can
428+
It's common for environments to be similar to each other, so you can
429429
use `symbolic links`_ between ``config/packages/<environment-name>/``
430430
directories to reuse the same configuration.
431431

@@ -728,10 +728,10 @@ doesn't work for parameters:
728728
$container->getDefinition(MessageGenerator::class)
729729
->setArgument('$contentsDir', '%app.contents_dir%');
730730
731-
If you inject the same parameters over and over again, use instead the
732-
``services._defaults.bind`` option. The arguments defined in that option are
731+
If you inject the same parameters over and over again, use the
732+
``services._defaults.bind`` option instead. The arguments defined in that option are
733733
injected automatically whenever a service constructor or controller action
734-
define an argument with that exact name. For example, to inject the value of the
734+
defines an argument with that exact name. For example, to inject the value of the
735735
:ref:`kernel.project_dir parameter <configuration-kernel-project-directory>`
736736
whenever a service/controller defines a ``$projectDir`` argument, use this:
737737

@@ -790,7 +790,7 @@ whenever a service/controller defines a ``$projectDir`` argument, use this:
790790
Read the article about :ref:`binding arguments by name and/or type <services-binding>`
791791
to learn more about this powerful feature.
792792

793-
Finally, if some service needs to access to lots of parameters, instead of
793+
Finally, if some service needs access to lots of parameters, instead of
794794
injecting each of them individually, you can inject all the application
795795
parameters at once by type-hinting any of its constructor arguments with the
796796
:class:`Symfony\\Component\\DependencyInjection\\ParameterBag\\ContainerBagInterface`::
@@ -822,7 +822,7 @@ parameters at once by type-hinting any of its constructor arguments with the
822822
Keep Going!
823823
-----------
824824

825-
Congratulations! You've tackled the basics in Symfony. Next, learn about *each*
825+
Congratulations! You've tackled the basics of Symfony. Next, learn about *each*
826826
part of Symfony individually by following the guides. Check out:
827827

828828
* :doc:`/forms`

0 commit comments

Comments
 (0)
0